aboutsummaryrefslogtreecommitdiff
path: root/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'os.h')
-rw-r--r--os.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/os.h b/os.h
index 2635268..0c8edfb 100644
--- a/os.h
+++ b/os.h
@@ -7,8 +7,12 @@
#include <Windows.h>
#include "intdef.h"
+/* This is really just here because Windows API functions are ugly. Maybe this
+ * will be cross platform one day... */
+
#define os_dlopen LoadLibraryA
-#define os_dlsym GetProcAddress
+#define os_dlsym (void *)GetProcAddress
+#define os_dlclose FreeLibrary
inline bool os_mprot(void *mem, int len, int mode) {
ulong old;