updates from orpheus for windoze build
[feisty_meow.git] / nucleus / library / basis / mutex.cpp
index 73de68c86b6255c52f15438a955d39c0917398a6..fce0bed90b3052c40a9232d7c5510dca8995bcac 100644 (file)
@@ -25,6 +25,8 @@
   #include <pthread.h>
 #endif
 #ifdef __WIN32__
+  #include <synchapi.h>
+/*
   #define _WINSOCKAPI_  // make windows.h happy about winsock.
   // winsock support...
 //  #undef FD_SETSIZE
@@ -32,6 +34,7 @@
     // if you don't set this, you can only select on a default of 64 sockets.
   #include <winsock2.h>
   #include <windows.h>
+  */
 #endif
 
 namespace basis {
@@ -59,7 +62,7 @@ void mutex::construct()
   ret = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
 #endif
   if (ret != 0) {
-    printf("failed to initialize mutex attributes!\n"); fflush(NIL);
+    printf("failed to initialize mutex attributes!\n"); fflush(NULL_POINTER);
   }
   c_os_mutex = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t));
   pthread_mutex_init((pthread_mutex_t *)c_os_mutex, &attr);