mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
some fixes for the host gcc4 on FC4
svn path=/trunk/; revision=16689
This commit is contained in:
parent
30f4461f0e
commit
8112d02490
3 changed files with 27 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
inline char* strupr ( char* str )
|
||||
while (*y) {
|
||||
*y=tolower(*y);
|
||||
y++;
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue