svn path=/branches/xmlbuildsystem/; revision=13048
\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
{\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
\r
#include "../pch.h"\r
\r
-#include "../Rbuild.h"\r
+#include "../rbuild.h"\r
#include "backend.h"\r
\r
using std::string;\r
\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
#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
// 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