From 7a060fe503f52e8b042393a5c1f6fdda7329a787 Mon Sep 17 00:00:00 2001 From: cgohlke Date: Thu, 12 Jul 2012 20:54:39 -0700 Subject: define npy_fseek and npy_ftell --- numpy/core/include/numpy/npy_common.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'numpy') diff --git a/numpy/core/include/numpy/npy_common.h b/numpy/core/include/numpy/npy_common.h index 4f895e0a7..aecc88783 100644 --- a/numpy/core/include/numpy/npy_common.h +++ b/numpy/core/include/numpy/npy_common.h @@ -16,6 +16,15 @@ #define NPY_INLINE #endif +/* Enable 64 bit file position support on win-amd64. Ticket #1660 */ +#if defined(_MSC_VER) && defined(_WIN64) && (_MSC_VER > 1400) + #define npy_fseek _fseeki64 + #define npy_ftell _ftelli64 +#else + #define npy_fseek fseek + #define npy_ftell ftell +#endif + /* enums for detected endianness */ enum { NPY_CPU_UNKNOWN_ENDIAN, -- cgit v1.2.1