blob: 3b1c98c507f2ace790c7818e493083b4c4db800d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#ifdef WINDOWS
#include <windows.h>
#define dlopen(a,b) LoadLibrary(a)
#define dlsym(a,b) GetProcAddress(a,b)
#define dlclose(a) /* CloseLibrary(a) */
#define dlerror() "Error loading library"
#define LIBHANDLE_T HINSTANCE__
#else
#include <dlfcn.h>
#define LIBHANDLE_T void
#endif
|