From: Ryan Norton <wxprojects@comcast.net>
Date: Sun, 10 Apr 2005 06:35:53 +0000 (+0000)
Subject: cygwin only
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1446dfdbfebeda4033a2f0ecb46148b2fdb33e7b?ds=inline

cygwin only


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/include/wx/defs.h b/include/wx/defs.h
index dd50006e2d..05cc3427cb 100644
--- a/include/wx/defs.h
+++ b/include/wx/defs.h
@@ -2246,6 +2246,7 @@ enum wxUpdateUI
 #   define wxALL_FILES           gettext_noop("All files (*)|*")
 #endif
 
+#if defined(__CYGWIN__)
 #   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
@@ -2254,6 +2255,7 @@ enum wxUpdateUI
 #        include <unistd.h>
 #        undef gethostname
 #   endif
+#endif
 
 /*  --------------------------------------------------------------------------- */
 /*  macros that enable wxWidgets apps to be compiled in absence of the */