summaryrefslogtreecommitdiff
path: root/src/Fl_get_system_colors.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-12-14 01:58:03 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-12-14 01:58:03 +0000
commit9d060d717c392c0fa4f68c00d313ef936129862a (patch)
tree564f19c84436c66845337eba26743ab6f7abdc5e /src/Fl_get_system_colors.cxx
parentcbb4918f4134ae98926d8fd79746a43d50e76fd5 (diff)
Fixes for Cygwin (STR #1096)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_get_system_colors.cxx')
-rw-r--r--src/Fl_get_system_colors.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_get_system_colors.cxx b/src/Fl_get_system_colors.cxx
index f2e5746fa..67a8802e9 100644
--- a/src/Fl_get_system_colors.cxx
+++ b/src/Fl_get_system_colors.cxx
@@ -40,11 +40,11 @@
extern "C" int putenv(const char*);
#endif // __APPLE__ && __MWERKS__
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
// on Windows, which is supposed to be POSIX compliant...
# define putenv _putenv
-#endif // WIN32
+#endif // WIN32 && !__CYGWIN__
static char fl_bg_set = 0;
static char fl_bg2_set = 0;