mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Debug LFS issue on Windows.
This commit is contained in:
parent
e6e8bba26a
commit
5f8f8e8c73
@ -693,10 +693,16 @@ CHECK_TYPE_SIZE("off64_t" SIZEOF_OFF64_T)
|
||||
CHECK_TYPE_SIZE("short" SIZEOF_SHORT)
|
||||
CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_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("int64_t" SIZEOF_INT64_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)
|
||||
SET(HAVE_SSIZE_T 1)
|
||||
ELSE()
|
||||
|
@ -11,11 +11,7 @@
|
||||
#pragma warning( disable: 4018 4996 4244 4305 )
|
||||
#define unlink _unlink
|
||||
#define open _open
|
||||
#define close _close
|
||||
#define read _read
|
||||
|
||||
#define lseek _lseeki64
|
||||
#define off_t __int64
|
||||
#define off_t __int64
|
||||
#define _off_t __int64
|
||||
|
||||
#ifndef _OFF_T_DEFINED
|
||||
@ -213,7 +209,8 @@
|
||||
#cmakedefine SIZEOF_SSIZE_T @SIZEOF_SSIZE_T@
|
||||
/* The size of `uchar` as computed by sizeof. */
|
||||
#cmakedefine SIZEOF_UCHAR @SIZEOF_UCHAR@
|
||||
|
||||
/* The size of `__int64` found on Windows systems. */
|
||||
#cmakedefine SIZEOF___INT64 @SIZEOF___INT64@
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user