From 41b85d18a4c6e7cb4dd31f05705368b4e20667de Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 21 Jan 2014 11:07:43 +0000 Subject: Fix strcasecmp() issues (again), see STR #2994. This new temporary fix improves handling of strcasecmp() for CMake-generated Makefiles (cmake -G "MSYS Makefiles" ..). For some unknown reason (maybe other compiler flags?) this showed lots of *warnings* again. A better fix (replacing direct calls to strcasecmp() with fl_strcasecmp() or similar will follow later. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/factory.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fluid') 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... // -- cgit v1.2.3