Debug LFS issue on Windows.

This commit is contained in:
Ward Fisher 2013-08-30 15:16:17 -06:00
parent e6e8bba26a
commit 5f8f8e8c73
2 changed files with 9 additions and 6 deletions

View File

@ -693,10 +693,16 @@ CHECK_TYPE_SIZE("off64_t" SIZEOF_OFF64_T)
CHECK_TYPE_SIZE("short" SIZEOF_SHORT) CHECK_TYPE_SIZE("short" SIZEOF_SHORT)
CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_T) CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_T)
CHECK_TYPE_SIZE("ssize_t" SIZEOF_SSIZE_T) CHECK_TYPE_SIZE("ssize_t" SIZEOF_SSIZE_T)
# __int64 is used on Windows for large file support.
CHECK_TYPE_SIZE("__int64" SIZEOF___INT_64)
CHECK_TYPE_SIZE("uchar" SIZEOF_UCHAR) CHECK_TYPE_SIZE("uchar" SIZEOF_UCHAR)
CHECK_TYPE_SIZE("int64_t" SIZEOF_INT64_T) CHECK_TYPE_SIZE("int64_t" SIZEOF_INT64_T)
CHECK_TYPE_SIZE("uint64_t" SIZEOF_UINT64_T) CHECK_TYPE_SIZE("uint64_t" SIZEOF_UINT64_T)
IF(MSVC AND SIZEOF___INT_64)
SET(SIZEOF_OFF_T SIZEOF___INT_64)
ENDIF()
IF(SIZEOF_SSIZE_T) IF(SIZEOF_SSIZE_T)
SET(HAVE_SSIZE_T 1) SET(HAVE_SSIZE_T 1)
ELSE() ELSE()

View File

@ -11,11 +11,7 @@
#pragma warning( disable: 4018 4996 4244 4305 ) #pragma warning( disable: 4018 4996 4244 4305 )
#define unlink _unlink #define unlink _unlink
#define open _open #define open _open
#define close _close #define off_t __int64
#define read _read
#define lseek _lseeki64
#define off_t __int64
#define _off_t __int64 #define _off_t __int64
#ifndef _OFF_T_DEFINED #ifndef _OFF_T_DEFINED
@ -213,7 +209,8 @@
#cmakedefine SIZEOF_SSIZE_T @SIZEOF_SSIZE_T@ #cmakedefine SIZEOF_SSIZE_T @SIZEOF_SSIZE_T@
/* The size of `uchar` as computed by sizeof. */ /* The size of `uchar` as computed by sizeof. */
#cmakedefine SIZEOF_UCHAR @SIZEOF_UCHAR@ #cmakedefine SIZEOF_UCHAR @SIZEOF_UCHAR@
/* The size of `__int64` found on Windows systems. */
#cmakedefine SIZEOF___INT64 @SIZEOF___INT64@