diff options
Diffstat (limited to 'src/os-win32.h')
-rw-r--r-- | src/os-win32.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os-win32.h b/src/os-win32.h index fe61f84..a006083 100644 --- a/src/os-win32.h +++ b/src/os-win32.h @@ -45,10 +45,17 @@ typedef unsigned short os_char; #define os_getenv _wgetenv #define os_getcwd _wgetcwd +#define OS_DLPREFIX "" #define OS_DLSUFFIX ".dll" #define OS_MAIN wmain +static inline void *os_dlopen(const ushort *name) { + return LoadLibraryW(name); +} +static inline void *os_dlhandle(const ushort *name) { + return GetModuleHandleW(name); +} static inline void *os_dlsym(void *m, const char *s) { return (void *)GetProcAddress(m, s); } |