diff --git a/common/interface.cpp b/common/interface.cpp index 0fe0991..a0d5888 100644 --- a/common/interface.cpp +++ b/common/interface.cpp @@ -7,9 +7,11 @@ #include #include +#include #include "interface.h" #ifndef _WIN32 // LINUX +#include #include #endif @@ -142,7 +144,7 @@ CreateInterfaceFn Sys_GetFactory( HINTERFACEMODULE hModule ) if(!hModule) return NULL; - return dlsym( (void *)hModule, CREATEINTERFACE_PROCNAME ); + return (CreateInterfaceFn)dlsym( (void *)hModule, CREATEINTERFACE_PROCNAME ); } #endif