mirror of
https://github.com/UberGames/ioef.git
synced 2025-05-30 17:01:23 +00:00
* Build dedicated server binary on Windows
This commit is contained in:
parent
e56a151a97
commit
54ba74964a
6 changed files with 156 additions and 68 deletions
|
@ -21,11 +21,19 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
*/
|
||||
|
||||
#ifdef DEDICATED
|
||||
# ifdef _WIN32
|
||||
# include <windows.h>
|
||||
# define Sys_LoadLibrary(f) (void*)LoadLibrary(f)
|
||||
# define Sys_UnloadLibrary(h) FreeLibrary((HMODULE)h)
|
||||
# define Sys_LoadFunction(h,fn) (void*)GetProcAddress((HMODULE)h,fn)
|
||||
# define Sys_LibraryError() "unknown"
|
||||
# else
|
||||
# include <dlfcn.h>
|
||||
# define Sys_LoadLibrary(f) dlopen(f,RTLD_NOW)
|
||||
# define Sys_UnloadLibrary(h) dlclose(h)
|
||||
# define Sys_LoadFunction(h,fn) dlsym(h,fn)
|
||||
# define Sys_LibraryError() dlerror()
|
||||
# define Sys_LoadLibrary(f) dlopen(f,RTLD_NOW)
|
||||
# define Sys_UnloadLibrary(h) dlclose(h)
|
||||
# define Sys_LoadFunction(h,fn) dlsym(h,fn)
|
||||
# define Sys_LibraryError() dlerror()
|
||||
#endif
|
||||
#else
|
||||
# include "SDL.h"
|
||||
# include "SDL_loadso.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue