summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fluid/factory.cxx7
-rw-r--r--src/flstring.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx
index bb6ed2bb8..dca05a90b 100644
--- a/fluid/factory.cxx
+++ b/fluid/factory.cxx
@@ -44,8 +44,13 @@ extern Fl_Pixmap *pixmap[];
// until a better fix can be found. One way would be to rename this
// local, static version of function strcasecmp()...
// AlbrechtS, Jan 03, 2014, svn -r ~10044, see STR #2994
+//
+// For some (yet unknown) reason the previous fix didn't work with
+// CMake-generated MinGW (MSYS) Makefiles, hence we have to use
+// !defined(__MINGW32__) instead of !defined(strcasecmp).
+// AlbrechtS, Jan 21, 2014, svn -r ~10074, see STR #2994
-#if !HAVE_STRCASECMP && !defined(strcasecmp)
+#if !HAVE_STRCASECMP && !defined(__MINGW32__)
//
// 'strcasecmp()' - Do a case-insensitive compare...
//
diff --git a/src/flstring.h b/src/flstring.h
index 3f565a7c9..c575c2069 100644
--- a/src/flstring.h
+++ b/src/flstring.h
@@ -39,7 +39,7 @@
# undef index
# endif /* index */
-# if defined(WIN32) && !defined(__CYGWIN__)
+# if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
# define strcasecmp(s,t) _stricmp((s), (t))
# define strncasecmp(s,t,n) _strnicmp((s), (t), (n))
/* Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs