mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 10:03:51 +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 <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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue