summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/include/numpy/npy_common.h9
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,