get the new buildsystem to mostly work for cross-compiling. Thanks Casper, Royce...
authorSteven Edwards <winehacker@gmail.com>
Fri, 14 Jan 2005 21:14:48 +0000 (21:14 +0000)
committerSteven Edwards <winehacker@gmail.com>
Fri, 14 Jan 2005 21:14:48 +0000 (21:14 +0000)
svn path=/branches/xmlbuildsystem/; revision=13048

reactos/tools/rbuild/XML.cpp
reactos/tools/rbuild/backend/backend.cpp
reactos/tools/rbuild/pch.h
reactos/tools/rbuild/rbuild.cpp
reactos/tools/rbuild/ssprintf.cpp

index a689fbf..f5f9758 100644 (file)
@@ -2,8 +2,13 @@
 \r
 #include "pch.h"\r
 \r
+#ifdef WIN32\r
 #include <direct.h>\r
 #include <io.h>\r
+#else\r
+#include <sys/stat.h>\r
+#define _MAX_PATH 255\r
+#endif\r
 #include <assert.h>\r
 \r
 #include "XML.h"\r
@@ -63,7 +68,7 @@ filelen ( FILE* f )
 {\r
 #ifdef WIN32\r
        return _filelengthi64 ( _fileno(f) );\r
-#elif defined(UNIX)\r
+#else\r
        struct stat64 file_stat;\r
        if ( fstat64(fileno(f), &file_stat) != 0 )\r
                return 0;\r
index 02da1dc..f6081e2 100644 (file)
@@ -1,7 +1,7 @@
 \r
 #include "../pch.h"\r
 \r
-#include "../Rbuild.h"\r
+#include "../rbuild.h"\r
 #include "backend.h"\r
 \r
 using std::string;\r
index c0881b7..0cda231 100644 (file)
 \r
 #include <stdarg.h>\r
 \r
+#ifndef WIN32\r
+#include <wctype.h>\r
+#include <math.h>\r
+\r
+inline char* strlwr ( char* str )\r
+{\r
+  char* p = str;\r
+  while ( *p )\r
+    *p++ = tolower(*p);\r
+  return str;\r
+}\r
+\r
+#define _finite __finite\r
+#define _isnan __isnan\r
+#endif\r
+\r
 #endif//PCH_H\r
index d0e24bf..563bc2d 100644 (file)
@@ -4,7 +4,9 @@
 #include <typeinfo>\r
 \r
 #include <stdio.h>\r
+#ifdef WIN32\r
 #include <io.h>\r
+#endif\r
 #include <assert.h>\r
 \r
 #include "rbuild.h"\r
index dbd2bc2..d8c415f 100644 (file)
@@ -1,5 +1,7 @@
 // ssprintf.cpp\r
 \r
+#include "pch.h"\r
+\r
 #include <malloc.h>\r
 #include <math.h>\r
 #include <float.h>\r
 #define alloca _alloca\r
 #endif//_MSC_VER\r
 \r
+#ifdef _MSC_VER\r
 typedef __int64 LONGLONG;\r
 typedef unsigned __int64 ULONGLONG;\r
+#else\r
+typedef long long LONGLONG;\r
+typedef unsigned long long ULONGLONG;\r
+#endif\r
 \r
 typedef struct {\r
     unsigned int mantissa:23;\r