common: interface: fix dlsym cast, fix headers for Linux
This commit is contained in:
parent
5bb2221c62
commit
3e907922df
@ -7,9 +7,11 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "interface.h"
|
||||
|
||||
#ifndef _WIN32 // LINUX
|
||||
#include <unistd.h>
|
||||
#include <dlfcn.h>
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user