summaryrefslogtreecommitdiff
path: root/src/flstring.h
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-11-27 14:45:48 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-11-27 14:45:48 +0000
commite321cb37bfe0379f54010eb42a36573ca561e71f (patch)
tree8859d1296934461dc33abddc49701f5bbdc53124 /src/flstring.h
parentf9f2de35726988a6fd9d3b226dc683c394c1d65c (diff)
VC++ 2005 Support, drop old files, add icons for Sudoku
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/flstring.h')
-rw-r--r--src/flstring.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/flstring.h b/src/flstring.h
index db9f97038..eb6d18ea3 100644
--- a/src/flstring.h
+++ b/src/flstring.h
@@ -30,6 +30,7 @@
# include <FL/Fl_Export.H>
# include <config.h>
+# include <stdio.h>
# include <stdarg.h>
# include <string.h>
# ifdef HAVE_STRINGS_H
@@ -48,8 +49,13 @@
# endif /* index */
# if defined(WIN32) && !defined(__CYGWIN__)
-# define strcasecmp(s,t) stricmp((s), (t))
-# define strncasecmp(s,t,n) strnicmp((s), (t), (n))
+# 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
+// on Windows, which is supposed to be POSIX compliant... Some of these functions
+// are also defined in ISO C99...
+# define strdup _strdup
+# define unlink _unlink
# elif defined(__EMX__)
# define strcasecmp(s,t) stricmp((s), (t))
# define strncasecmp(s,t,n) strnicmp((s), (t), (n))