00001 00006 #ifndef DYNLOAD_H 00007 #define DYNLOAD_H 00008 00009 #ifdef WIN32 00010 00011 #include <windows.h> 00012 typedef HMODULE LIBHANDLE; 00013 00014 #elif defined __linux__ 00015 00016 #include <dlfcn.h> 00017 #define LoadLibrary(x) dlopen(x, RTLD_NOW) 00018 #define GetProcAddress dlsym 00019 #define FreeLibrary dlclose 00020 typedef void* LIBHANDLE; 00021 00022 #else 00023 #error ERROR: OS not supported 00024 #endif 00025 00026 #endif // DYNLOAD_H
1.5.4