Skip to content
Snippets Groups Projects
Commit 0a86aafa authored by deuce's avatar deuce
Browse files

We need to #include genwrap.h for SLEEP(), and return a value in all paths

in pthread_once().
parent 46827ef4
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@
#define _WIN32_WINNT 0x0400 /* Needed for TryEnterCriticalSection */
#endif
#include "genwrap.h" /* SLEEP() */
#include "threadwrap.h" /* DLLCALL */
/****************************************************************************/
......@@ -146,6 +147,7 @@ int DLLCALL pthread_once(pthread_once_t *oc, void (*init)(void))
case 2: // Done.
return 0;
}
return EINVAL;
}
int DLLCALL pthread_mutex_init(pthread_mutex_t* mutex, void* attr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment