Subversion Repositories eduke32

Rev

Rev 8116 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8116 Rev 8131
Line 14... Line 14...
14
typedef HINSTANCE VW_LIBHANDLE;
14
typedef HINSTANCE VW_LIBHANDLE;
15
# define Voidwrap_LoadLibrary(lib) LoadLibrary((lib))
15
# define Voidwrap_LoadLibrary(lib) LoadLibrary((lib))
16
# define Voidwrap_GetSymbol(lib_handle, symbol) ((void(*)())GetProcAddress((lib_handle), (symbol)))
16
# define Voidwrap_GetSymbol(lib_handle, symbol) ((void(*)())GetProcAddress((lib_handle), (symbol)))
17
#else
17
#else
18
# include <dlfcn.h>
18
# include <dlfcn.h>
-
 
19
# ifdef VOIDWRAP_ISEXPORTING
-
 
20
#  define VOIDWRAP_API __attribute__ ((visibility("default"))) 
-
 
21
# else
19
# define VOIDWRAP_API
22
#  define VOIDWRAP_API
-
 
23
# endif
20
typedef void * VW_LIBHANDLE;
24
typedef void * VW_LIBHANDLE;
21
# define Voidwrap_LoadLibrary(lib) dlopen((lib), RTLD_NOW|RTLD_GLOBAL)
25
# define Voidwrap_LoadLibrary(lib) dlopen((lib), RTLD_NOW|RTLD_GLOBAL)
22
# define Voidwrap_GetSymbol(lib_handle, symbol) dlsym((lib_handle), (symbol))
26
# define Voidwrap_GetSymbol(lib_handle, symbol) dlsym((lib_handle), (symbol))
23
#endif
27
#endif
24
28