Changeset 212 in Main for trunk/Server/module.c
- Timestamp:
- Oct 3, 2024, 2:44:55 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/module.c
r189 r212 11 11 12 12 #include <string.h> 13 #include <stdlib.h> 14 #ifndef _MSC_VER 13 15 #include <unistd.h> 14 # include <stdlib.h>16 #endif 15 17 16 18 extern struct tw_config config; … … 25 27 #else 26 28 27 #if def __MINGW32__29 #if defined(__MINGW32__) || defined(_MSC_VER) 28 30 #include <windows.h> 29 31 #else … … 33 35 void* tw_module_load(const char* path) { 34 36 char* p = getcwd(NULL, 0); 37 void* lib; 35 38 chdir(config.server_root); 36 void* lib; 37 #ifdef __MINGW32__ 39 #if defined(__MINGW32__) || defined(_MSC_VER) 38 40 lib = LoadLibraryA(path); 39 41 #else … … 49 51 50 52 void* tw_module_symbol(void* mod, const char* sym) { 51 #if def __MINGW32__53 #if defined(__MINGW32__) || defined(_MSC_VER) 52 54 return GetProcAddress(mod, sym); 53 55 #else
Note:
See TracChangeset
for help on using the changeset viewer.