summaryrefslogtreecommitdiff
path: root/src/flstring.h
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-01-15 01:33:16 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-01-15 01:33:16 +0000
commitd246217383c13fb2f2db7eb6d956a2e8730e9ce0 (patch)
tree4103e285c2f1546961c4bb0a46334a92ce78c0bc /src/flstring.h
parent7a82535b938ba6a4dc65e19ac747068bd73bbc8b (diff)
Unixware fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/flstring.h')
-rw-r--r--src/flstring.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/flstring.h b/src/flstring.h
index 1a404d10d..24b466585 100644
--- a/src/flstring.h
+++ b/src/flstring.h
@@ -1,5 +1,5 @@
/*
- * "$Id: flstring.h,v 1.1.2.1 2001/11/25 16:38:11 easysw Exp $"
+ * "$Id: flstring.h,v 1.1.2.2 2002/01/15 01:33:16 easysw Exp $"
*
* Common string header file for the Fast Light Tool Kit (FLTK).
*
@@ -33,6 +33,13 @@
# include <strings.h>
# endif /* HAVE_STRINGS_H */
+// Apparently Unixware defines "index" to strchr (!) rather than
+// providing a proper entry point or not providing the (obsolete)
+// BSD function. Make sure index is not defined...
+# ifdef index
+# undef index
+# endif // index
+
# if defined(WIN32) && !defined(__CYGWIN__)
# define strcasecmp(s,t) stricmp((s), (t))
# define strncasecmp(s,t,n) strnicmp((s), (t), (n))
@@ -59,5 +66,5 @@ extern int vsnprintf(char *, size_t, const char *, va_list ap);
#endif /* !flstring_h */
/*
- * End of "$Id: flstring.h,v 1.1.2.1 2001/11/25 16:38:11 easysw Exp $".
+ * End of "$Id: flstring.h,v 1.1.2.2 2002/01/15 01:33:16 easysw Exp $".
*/