diff th_network.h @ 191:cc5411cb85de

Use TH_PLAT_WINDOWS define for #ifdef logic.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 11 Feb 2016 16:09:12 +0200
parents c65ee8808381
children 6cfa9bc91ee6
line wrap: on
line diff
--- a/th_network.h	Thu Feb 11 16:08:12 2016 +0200
+++ b/th_network.h	Thu Feb 11 16:09:12 2016 +0200
@@ -14,20 +14,20 @@
 #include "th_util.h"
 
 
-#ifdef __WIN32
-#define __OBJC_BOOL // A nasty hack
-#include <windows.h>
-#include <winsock.h>
+#ifdef TH_PLAT_WINDOWS
+#    define __OBJC_BOOL // A nasty hack
+#    include <windows.h>
+#    include <winsock.h>
 typedef uint16_t in_port_t;
 typedef uint32_t in_addr_t;
 #else
-#include <sys/select.h>
-#include <sys/socket.h>
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#include <arpa/inet.h>
-#include <netdb.h>
+#    include <sys/select.h>
+#    include <sys/socket.h>
+#    ifdef HAVE_NETINET_IN_H
+#        include <netinet/in.h>
+#    endif
+#    include <arpa/inet.h>
+#    include <netdb.h>
 #endif