mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 01:52:06 +00:00
get the new buildsystem to mostly work for cross-compiling. Thanks Casper, Royce, etc.
svn path=/branches/xmlbuildsystem/; revision=13048
This commit is contained in:
parent
ffdcbc9c60
commit
0cefd55620
5 changed files with 32 additions and 2 deletions
|
@ -2,8 +2,13 @@
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
#else
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#define _MAX_PATH 255
|
||||||
|
#endif
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "XML.h"
|
#include "XML.h"
|
||||||
|
@ -63,7 +68,7 @@ filelen ( FILE* f )
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
return _filelengthi64 ( _fileno(f) );
|
return _filelengthi64 ( _fileno(f) );
|
||||||
#elif defined(UNIX)
|
#else
|
||||||
struct stat64 file_stat;
|
struct stat64 file_stat;
|
||||||
if ( fstat64(fileno(f), &file_stat) != 0 )
|
if ( fstat64(fileno(f), &file_stat) != 0 )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
#include "../pch.h"
|
#include "../pch.h"
|
||||||
|
|
||||||
#include "../Rbuild.h"
|
#include "../rbuild.h"
|
||||||
#include "backend.h"
|
#include "backend.h"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
|
@ -13,4 +13,20 @@
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
|
#include <wctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
inline char* strlwr ( char* str )
|
||||||
|
{
|
||||||
|
char* p = str;
|
||||||
|
while ( *p )
|
||||||
|
*p++ = tolower(*p);
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define _finite __finite
|
||||||
|
#define _isnan __isnan
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif//PCH_H
|
#endif//PCH_H
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#ifdef WIN32
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
#endif
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "rbuild.h"
|
#include "rbuild.h"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// ssprintf.cpp
|
// ssprintf.cpp
|
||||||
|
|
||||||
|
#include "pch.h"
|
||||||
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
@ -10,8 +12,13 @@
|
||||||
#define alloca _alloca
|
#define alloca _alloca
|
||||||
#endif//_MSC_VER
|
#endif//_MSC_VER
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
typedef __int64 LONGLONG;
|
typedef __int64 LONGLONG;
|
||||||
typedef unsigned __int64 ULONGLONG;
|
typedef unsigned __int64 ULONGLONG;
|
||||||
|
#else
|
||||||
|
typedef long long LONGLONG;
|
||||||
|
typedef unsigned long long ULONGLONG;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned int mantissa:23;
|
unsigned int mantissa:23;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue