diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-01-03 17:24:00 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-01-03 17:24:00 +0000 |
| commit | eb980231be4d3cb93b306cdf3b133ff326abad8d (patch) | |
| tree | ba9cc61857113ebb338f7034b7fc4e2f8dc294a3 | |
| parent | 6532f276fe174e4ea5de2d9635a0e06cc3fc62a1 (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
| -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... // |
