#include "wx/platform.h"
-/* RN - only double-check the environment when building in C++
- Shouldn't configure pass the environment to all sub-libs too? */
#ifdef __cplusplus
/* Make sure the environment is set correctly */
# if defined(__WXMSW__) && defined(__X__)
# define wxALL_FILES gettext_noop("All files (*)|*")
#endif
+# if wxUSE_STL || defined(wxUSE_STD_STRING)
+ //NASTY HACK because the gethostname in sys/unistd.h which the gnu stl includes
+ //and wx builds with by default clash with each other (windows version
+ //2nd param is int, sys/unistd.h version is unsigned int).
+# define gethostname gethostnameHACK
+# include <unistd.h>
+# undef gethostname
+# endif
+
/* --------------------------------------------------------------------------- */
/* macros that enable wxWidgets apps to be compiled in absence of the */
/* sytem headers, although some platform specific types are used in the */
#include "wx/msw/wrapwin.h"
-#if defined(__WXWINCE__)
+#if defined(__CYGWIN__)
+ //CYGWIN gives annoying warning about runtime stuff if we don't do this
+# define USE_SYS_TYPES_FD_SET
+# include <sys/types.h>
+#endif
+
+#if defined(__WXWINCE__) || defined(__CYGWIN__)
#include <winsock.h>
#endif