some fixes for the host gcc4 on FC4

svn path=/trunk/; revision=16689
This commit is contained in:
Steven Edwards 2005-07-22 19:45:32 +00:00
parent 30f4461f0e
commit 8112d02490
3 changed files with 27 additions and 18 deletions

View file

@ -26,12 +26,15 @@
#include <wctype.h>
#include <math.h>
inline char* strlwr ( char* str )
inline char * strlwr(char *x)
{
char* p = str;
while ( *p )
*p++ = tolower(*p);
return str;
char *y=x;
while (*y) {
*y=tolower(*y);
y++;
}
return x;
}
#define _finite __finite

View file

@ -39,20 +39,26 @@
#include <wctype.h>
#include <math.h>
inline char* strlwr ( char* str )
inline char * strlwr(char *x)
{
char* p = str;
while ( *p )
*p++ = tolower(*p);
return str;
char *y=x;
while (*y) {
*y=tolower(*y);
y++;
}
return x;
}
inline char* strupr ( char* str )
inline char *strupr(char *x)
{
char *c = str;
while ( *str++ )
toupper( *str );
return c;
char *y=x;
while (*y) {
*y=toupper(*y);
y++;
}
return x;
}
#define _finite __finite

View file

@ -5,9 +5,9 @@
typedef unsigned short UINT;
typedef unsigned int DWORD;
typedef const unsigned char* LPCSTR;
typedef char* LPCSTR;
typedef wchar_t* LPWSTR;
typedef unsigned char* LPSTR;
typedef char* LPSTR;
typedef const wchar_t* LPCWSTR;
typedef unsigned int* LPBOOL;