diff options
Diffstat (limited to 'os.h')
| -rw-r--r-- | os.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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;
|
