ithewei 6 years ago
parent
commit
ead92d9deb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      base/hmutex.h
  2. 1 1
      base/hthread.h

+ 1 - 1
base/hmutex.h

@@ -12,7 +12,7 @@
 
 #define honce_t             INIT_ONCE
 #define HONCE_INIT          INIT_ONCE_STATIC_INIT
-typedef void (WINAPI *honce_fn)();
+typedef void (*honce_fn)();
 static inline BOOL WINAPI s_once_func(INIT_ONCE* once, PVOID arg, PVOID* _) {
     honce_fn fn = (honce_fn)arg;
     fn();

+ 1 - 1
base/hthread.h

@@ -19,7 +19,7 @@ static inline int gettid() {
 
 #ifdef OS_WIN
 typedef HANDLE      hthread_t;
-typedef DWORD WINAPI (*hthread_routine)(void*);
+typedef DWORD (WINAPI *hthread_routine)(void*);
 #define HTHREAD_ROUTINE(fname) DWORD WINAPI fname(void* userdata)
 static inline hthread_t hthread_create(hthread_routine fn, void* userdata) {
     return CreateThread(NULL, 0, fn, userdata, 0, NULL);