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;