summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_get_system_colors.cxx4
-rw-r--r--src/fl_arc.cxx4
2 files changed, 4 insertions, 4 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;
diff --git a/src/fl_arc.cxx b/src/fl_arc.cxx
index 3b50a32e2..08cc416bf 100644
--- a/src/fl_arc.cxx
+++ b/src/fl_arc.cxx
@@ -32,11 +32,11 @@
#include <FL/fl_draw.H>
#include <FL/math.h>
-#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 hypot _hypot
-#endif // WIN32
+#endif // WIN32 && !__CYGWIN__
void fl_arc(double x, double y, double r, double start, double end) {