Subversion Repositories Tewi

Rev

Rev 18 | Rev 156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 25
Line 1... Line 1...
1
/* $Id: module.c 18 2024-09-14 00:42:40Z nishi $ */
1
/* $Id: module.c 25 2024-09-14 15:10:29Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_module.h"
5
#include "tw_module.h"
6
 
6
 
Line 25... Line 25...
25
	chdir(config.server_root);
25
	chdir(config.server_root);
26
	void* lib;
26
	void* lib;
27
#ifdef __MINGW32__
27
#ifdef __MINGW32__
28
	lib = LoadLibraryA(path);
28
	lib = LoadLibraryA(path);
29
#else
29
#else
30
	lib = dlopen(path, DL_LAZY);
30
	lib = dlopen(path, RTLD_LAZY);
31
#endif
31
#endif
32
	if(lib == NULL) {
32
	if(lib == NULL) {
33
		cm_log("Module", "Could not load %s", path);
33
		cm_log("Module", "Could not load %s", path);
34
	}
34
	}
35
	chdir(p);
35
	chdir(p);