From 50a92455febba116be7a9d1bbeb46d4f2f6a6143 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 14 Mar 2009 02:11:31 +0000 Subject: Fixes for SGI builds (STR#2174) 1) C++ style comments in C files converted to /* */ 2) #warning's had to be #ifdef'ed out (#if !defined(sgi)..) With these mods, 1.3.x compiles on IRIX 6.5 with no failures. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/flstring.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/flstring.h') diff --git a/src/flstring.h b/src/flstring.h index 7e71df081..59b43b8ae 100644 --- a/src/flstring.h +++ b/src/flstring.h @@ -51,13 +51,14 @@ # if defined(WIN32) && !defined(__CYGWIN__) # 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... +/* 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... + */ # ifndef __WATCOMC__ # define strdup _strdup # define unlink _unlink -# endif // !__WATCOMC__ +# endif /* !__WATCOMC__ */ # elif defined(__EMX__) # define strcasecmp(s,t) stricmp((s), (t)) # define strncasecmp(s,t,n) strnicmp((s), (t), (n)) -- cgit v1.2.3