diff options
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | fluid/factory.cxx | 10 |
2 files changed, 11 insertions, 1 deletions
@@ -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... // |
