add a inline strupr for us Unix folk

svn path=/branches/xmlbuildsystem/; revision=14394
This commit is contained in:
Steven Edwards
2005-03-31 19:54:03 +00:00
parent a4ca6d5949
commit bf30d232a0
+11 -1
View File
@@ -19,6 +19,8 @@
#endif
#ifndef WIN32
#include <string.h>
#include <ctype.h>
#include <wctype.h>
#include <math.h>
@@ -29,7 +31,15 @@ inline char* strlwr ( char* str )
*p++ = tolower(*p);
return str;
}
inline char* strupr ( char* str )
{
char *c = str;
while ( *str++ )
toupper( *str );
return c;
}
#define _finite __finite
#define _isnan __isnan
#define stricmp strcasecmp