summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2014-01-03 17:24:00 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2014-01-03 17:24:00 +0000
commiteb980231be4d3cb93b306cdf3b133ff326abad8d (patch)
treeba9cc61857113ebb338f7034b7fc4e2f8dc294a3 /fluid
parent6532f276fe174e4ea5de2d9635a0e06cc3fc62a1 (diff)
Fixed recent MinGW build WRT configure not finding strcasecmp() (STR #2994).
Note: This fix is temporary and should be revisited later. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/factory.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx
index 0876ecdb3..bb6ed2bb8 100644
--- a/fluid/factory.cxx
+++ b/fluid/factory.cxx
@@ -37,7 +37,15 @@
extern Fl_Pixmap *pixmap[];
-#if !HAVE_STRCASECMP
+// Note: current MinGW versions don't find strcasecmp() in configure,
+// since it has been #define'd to _stricmp, and hence it does work,
+// although it is actually not available as a function in any lib.
+// The following "&& !defined(strcasecmp)" fixes this *temporarily*,
+// 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
+
+#if !HAVE_STRCASECMP && !defined(strcasecmp)
//
// 'strcasecmp()' - Do a case-insensitive compare...
//