mirror of
https://github.com/anope/anope.git
synced 2026-06-26 10:36:38 +02:00
Update cmake version parsing code to deal with recent build version changes
Update Config.cs to no longer hardcode VS generators, it seems no longer necessary. Fix new version system, cannot return C++ types from extern C functions
This commit is contained in:
@@ -287,7 +287,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
|
||||
ModuleVersion ModuleManager::GetVersion(void *handle)
|
||||
{
|
||||
dlerror();
|
||||
ModuleVersion (*func)() = function_cast<ModuleVersion (*)()>(dlsym(handle, "AnopeVersion"));;
|
||||
ModuleVersionC (*func)() = function_cast<ModuleVersionC (*)()>(dlsym(handle, "AnopeVersion"));;
|
||||
if (!func)
|
||||
{
|
||||
Log() << "No version function found, not an Anope module";
|
||||
|
||||
Reference in New Issue
Block a user