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:
Steven Edwards 2005-01-14 21:14:48 +00:00
parent ffdcbc9c60
commit 0cefd55620
5 changed files with 32 additions and 2 deletions

View file

@ -2,8 +2,13 @@
#include "pch.h"
#ifdef WIN32
#include <direct.h>
#include <io.h>
#else
#include <sys/stat.h>
#define _MAX_PATH 255
#endif
#include <assert.h>
#include "XML.h"
@ -63,7 +68,7 @@ filelen ( FILE* f )
{
#ifdef WIN32
return _filelengthi64 ( _fileno(f) );
#elif defined(UNIX)
#else
struct stat64 file_stat;
if ( fstat64(fileno(f), &file_stat) != 0 )
return 0;

View file

@ -1,7 +1,7 @@
#include "../pch.h"
#include "../Rbuild.h"
#include "../rbuild.h"
#include "backend.h"
using std::string;

View file

@ -13,4 +13,20 @@
#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

View file

@ -4,7 +4,9 @@
#include <typeinfo>
#include <stdio.h>
#ifdef WIN32
#include <io.h>
#endif
#include <assert.h>
#include "rbuild.h"

View file

@ -1,5 +1,7 @@
// ssprintf.cpp
#include "pch.h"
#include <malloc.h>
#include <math.h>
#include <float.h>
@ -10,8 +12,13 @@
#define alloca _alloca
#endif//_MSC_VER
#ifdef _MSC_VER
typedef __int64 LONGLONG;
typedef unsigned __int64 ULONGLONG;
#else
typedef long long LONGLONG;
typedef unsigned long long ULONGLONG;
#endif
typedef struct {
unsigned int mantissa:23;