]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/gsockmsw.h
Checking for wxUSE_SOCKETS and __GSOCKET_STANDALONE__ should be right, now
[wxWidgets.git] / include / wx / msw / gsockmsw.h
index 38105d5fa281edfb6f73d4bff34ed6bd49c337e4..6cd735b092a05233d506622d84398ce04fddb28f 100644 (file)
@@ -9,6 +9,12 @@
 #ifndef __GSOCK_MSW_H
 #define __GSOCK_MSW_H
 
 #ifndef __GSOCK_MSW_H
 #define __GSOCK_MSW_H
 
+#ifndef __GSOCKET_STANDALONE__
+#include "wx/setup.h"
+#endif
+
+#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
+
 #ifndef __GSOCKET_STANDALONE__
 #include "wx/gsocket.h"
 #else
 #ifndef __GSOCKET_STANDALONE__
 #include "wx/gsocket.h"
 #else
@@ -84,4 +90,6 @@ GSocketError _GAddress_Init_UNIX(GAddress *address);
 }
 #endif
 
 }
 #endif
 
+#endif  /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */
+
 #endif  /* __GSOCK_MSW_H */
 #endif  /* __GSOCK_MSW_H */