Author: matt
Date: 2012-07-25 08:16:15 -0700 (Wed, 25 Jul 2012)
New Revision: 9642
Log:
Fixed strncasecmp strcasecmp compile issue on WIN32
Modified:
branches/branch-3.0/include/fltk/flstring.h
Modified: branches/branch-3.0/include/fltk/flstring.h
===================================================================
--- branches/branch-3.0/include/fltk/flstring.h 2012-07-25 15:05:52 UTC (rev
9641)
+++ branches/branch-3.0/include/fltk/flstring.h 2012-07-25 15:16:15 UTC (rev
9642)
@@ -50,8 +50,8 @@
/* Windows has equivalent functions, but being Microsoft they added
gratuitoius changes to the names to stop code from being portable: */
#if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__EMX__)
-# define strcasecmp(s,t) _stricmp(s, t)
-# define strncasecmp(s,t,n) _strnicmp(s, t, n)
+inline int strcasecmp(const char *s, const char *t) { return _stricmp(s, t); }
+inline int strncasecmp(const char *s, const char *t, int n) { return
_strnicmp(s, t, n); }
# define vsnprintf _vsnprintf
# define snprintf _snprintf
#endif
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit