windows compatibility changes for private libwebsockets 45/2945/1
authorFNA <aqiruse@gmail.com>
Sat, 19 Jan 2013 05:58:06 +0000 (13:58 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:27 +0000 (13:01 -0800)
Signed-off-by: FNA <aqiruse@gmail.com>
lib/private-libwebsockets.h

index db8d5e7..ce30949 100644 (file)
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  */
-
+#if _MSC_VER > 1000 || defined(_WIN32)
+#else
 #include <unistd.h>
+#include <strings.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <strings.h>
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -32,6 +34,7 @@
 #ifdef  __MINGW64__
 #else
 #ifdef  __MINGW32__
+#elif _MSC_VER > 1000 || defined(_WIN32)
 #else
 #include <netdb.h>
 #endif