]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gsocket.h
Small tweaks for WinCE compatibility
[wxWidgets.git] / include / wx / gsocket.h
index 85c5cedd8098c35d966c02b51a13e97b558ae12e..5cd91ae0018a6c7961345468155f0120f361a95c 100644 (file)
 #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
 
 #include <stddef.h>
-#ifndef __WXMAC__
+
+/*
+   Including sys/types.h under cygwin results in the warnings about "fd_set
+   having been defined in sys/types.h" when winsock.h is included later and
+   doesn't seem to be necessary anyhow. It's not needed under Mac neither.
+ */
+#if !defined(__WXMAC__) && !defined(__CYGWIN__) && !defined(__WXWINCE__)
 #include <sys/types.h>
 #endif
 
+#ifdef __WXWINCE__
+#include <stdlib.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif