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 <wctype.h>
#include <math.h> #include <math.h>
inline char* strlwr ( char* str ) inline char * strlwr(char *x)
{ {
char* p = str; char *y=x;
while ( *p )
*p++ = tolower(*p); while (*y) {
return str; *y=tolower(*y);
y++;
}
return x;
} }
#define _finite __finite #define _finite __finite

View file

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

View file

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