get the new buildsystem to mostly work for cross-compiling. Thanks Casper, Royce, etc. Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/pch.h Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/ssprintf.cpp _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp 2005-01-14 21:08:01 UTC (rev 13047) +++ branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp 2005-01-14 21:14:48 UTC (rev 13048) @@ -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 @@ { #ifdef WIN32 return _filelengthi64 ( _fileno(f) ); -#elif defined(UNIX) +#else struct stat64 file_stat; if ( fstat64(fileno(f), &file_stat) != 0 ) return 0; _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp 2005-01-14 21:08:01 UTC (rev 13047) +++ branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp 2005-01-14 21:14:48 UTC (rev 13048) @@ -1,7 +1,7 @@
#include "../pch.h"
-#include "../Rbuild.h" +#include "../rbuild.h" #include "backend.h"
using std::string; _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/pch.h --- branches/xmlbuildsystem/reactos/tools/rbuild/pch.h 2005-01-14 21:08:01 UTC (rev 13047) +++ branches/xmlbuildsystem/reactos/tools/rbuild/pch.h 2005-01-14 21:14:48 UTC (rev 13048) @@ -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 _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp 2005-01-14 21:08:01 UTC (rev 13047) +++ branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp 2005-01-14 21:14:48 UTC (rev 13048) @@ -4,7 +4,9 @@
#include <typeinfo>
#include <stdio.h> +#ifdef WIN32 #include <io.h> +#endif #include <assert.h>
#include "rbuild.h" _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/ssprintf.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/ssprintf.cpp 2005-01-14 21:08:01 UTC (rev 13047) +++ branches/xmlbuildsystem/reactos/tools/rbuild/ssprintf.cpp 2005-01-14 21:14:48 UTC (rev 13048) @@ -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;