Backport fix from the 1.3 branch to resolve issues an issue with _strdup not being defined.

This resolves an issue when trying to compile FLTK 1.1 with MinGW because _strdup doesn't exist but the regular strdup function does.
This commit is contained in:
ComputerNerd
2020-12-07 01:15:24 -06:00
committed by Albrecht Schlosser
parent 74ecf68e8f
commit 1603f801a7
+1 -1
View File
@@ -48,7 +48,7 @@
# undef index
# endif /* index */
# if defined(WIN32) && !defined(__CYGWIN__)
# if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
# define strcasecmp(s,t) _stricmp((s), (t))
# define strncasecmp(s,t,n) _strnicmp((s), (t), (n))
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs