mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 21:22:24 +00:00
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:
parent
ffdcbc9c60
commit
0cefd55620
5 changed files with 32 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue