From 9d060d717c392c0fa4f68c00d313ef936129862a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 14 Dec 2005 01:58:03 +0000 Subject: Fixes for Cygwin (STR #1096) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_get_system_colors.cxx | 4 ++-- src/fl_arc.cxx | 4 ++-- 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 #include -#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) { -- cgit v1.2.3