diff options
author | cgohlke <cgohlke@uci.edu> | 2012-07-12 20:54:39 -0700 |
---|---|---|
committer | cgohlke <cgohlke@uci.edu> | 2012-07-12 20:54:39 -0700 |
commit | 7a060fe503f52e8b042393a5c1f6fdda7329a787 (patch) | |
tree | 3178a532fe8b7d29398d8d7869b9f846b4db4ef7 /numpy | |
parent | 24b74a21844f5398be0ae4e28e4191aa845547a2 (diff) | |
download | numpy-7a060fe503f52e8b042393a5c1f6fdda7329a787.tar.gz |
define npy_fseek and npy_ftell
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/include/numpy/npy_common.h | 9 |
1 files changed, 9 insertions, 0 deletions
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, |