summaryrefslogtreecommitdiff
path: root/config/msvc.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-04-05 21:19:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-05 21:19:03 -0700
commit675e7b7d7993ed9b2e9e3bcd7a0de605aa4d9f0d (patch)
tree4183b9c83f64b8922b80279589c2b9459c38a8f3 /config/msvc.h
parent9546507861ce0039845ac5f619b83fbb0332a5df (diff)
downloadnasm-675e7b7d7993ed9b2e9e3bcd7a0de605aa4d9f0d.tar.gz
MSVC compatibility: clean up the handling of _stati64/_fstati64
On Windows we need to use _stati64/_fstati64 in order to handle large file sizes, but the handling was broken in the canned MSVC++ configuration. Clean it up and fix it. This addresses BR 3392398. Reported-by: Nikolai Saoukh <nms@otdel-1.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'config/msvc.h')
-rw-r--r--config/msvc.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/config/msvc.h b/config/msvc.h
index 464d06e1..4ade0273 100644
--- a/config/msvc.h
+++ b/config/msvc.h
@@ -49,6 +49,7 @@
* 1700 - Visual Studio 2012
* 1800 - Visual Studio 2013
* 1900 - Visual Studio 2015
+ * 1910 - Visual Studio 2017
*/
#ifndef NASM_CONFIG_MSVC_H
@@ -112,9 +113,11 @@
/* Define to 1 if you have the `_fullpath' function. */
#define HAVE__FULLPATH 1
-/* Define to 1 if you have the `stat' function. */
-#define HAVE_STAT 1
-#define stat _stati64
+/* Define to 1 if you have the `_stati64' function. */
+#define HAVE__STATI64 1
+
+/* Define to 1 if you have the `_fstati64' function. */
+#define HAVE__FSTATI64 1
/* Define to 1 if stdbool.h conforms to C99. */
#if _MSC_VER >= 1800