From eb980231be4d3cb93b306cdf3b133ff326abad8d Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 3 Jan 2014 17:24:00 +0000 Subject: 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 --- CHANGES | 2 ++ fluid/factory.cxx | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 62a1691dd..a4b0dc419 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.3.3 RELEASED: MMM DD YYYY + - Fixed recent MinGW build WRT configure not finding strcasecmp() (STR #2994). + Note: This fix is temporary and should be revisited later. - Fixed missing libdl dependency in CMake builds (STR #2977). - Fixed segfault in fl_set_fonts_xft.cxx when loading fonts not named as expected (STR #2976). 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... // -- cgit v1.2.3