diff options
Diffstat (limited to 'src/suil_internal.h')
-rw-r--r-- | src/suil_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/suil_internal.h b/src/suil_internal.h index ac532ab..0ddfb72 100644 --- a/src/suil_internal.h +++ b/src/suil_internal.h @@ -29,7 +29,15 @@ #include <assert.h> #include <stdlib.h> +#ifdef __WIN32__ +#include <windows.h> +#define dlopen(path, flags) LoadLibrary(path) +#define dlclose(lib) FreeLibrary(lib) +#define dlsym GetProcAddress +static inline char* dlerror(void) { return "Unknown error"; } +#else #include <dlfcn.h> +#endif #include "suil/suil.h" |