Added definition for Windows systems to use 64-bit fstat.

This commit is contained in:
Ward Fisher 2013-10-31 11:10:20 -06:00
parent 09dab2e86a
commit 14ba5f0385
2 changed files with 7 additions and 2 deletions

View File

@ -730,7 +730,7 @@ ENDIF()
# By default, MSVC has a stack size of 1000000.
# Allow a user to override this.
IF(MSVC)
SET(NC_MSVC_STACK_SIZE 1000000 CACHE STRING "Default stack size for MSVC-based projects.")
SET(NC_MSVC_STACK_SIZE 40000000 CACHE STRING "Default stack size for MSVC-based projects.")
# By default, CMake sets the stack to 1000000.
# Remove this limitation.

View File

@ -4,6 +4,10 @@
/* Eliminate a number of warnings which come up based on deprecated
POSIX naming conventions. */
#ifdef _MSC_VER
/* Define O_BINARY so that the appropriate flags
are set when opening a binary file on Windows. */
/* Disable a few warnings under Visual Studio, for the
time being. */
#include <io.h>
@ -13,7 +17,8 @@
#define close _close
#define read _read
#define lseek _lseeki64
#define fstat _fstati64
#define off_t __int64
#define _off_t __int64