summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorIouri Kharon <bc-info@styx.cabel.net>2019-08-07 17:59:29 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-07 17:59:29 -0700
commit80ba65e830589b2b4e77112445ab03a3ce1de773 (patch)
treeb49a9c73c0c2aea3cf45513f25da494fc18eb629 /config
parentbe3e2f9d2d9c88b3a50c19636b924ac58e68c516 (diff)
downloadnasm-80ba65e830589b2b4e77112445ab03a3ce1de773.tar.gz
msvc.h: Allow building with MSVC versions older than 1700
Bug report 3392570. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'config')
-rw-r--r--config/msvc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/msvc.h b/config/msvc.h
index 631652ef..55c4e3d0 100644
--- a/config/msvc.h
+++ b/config/msvc.h
@@ -93,7 +93,7 @@
/* Define to 1 if you have the `snprintf' function. */
#define HAVE_SNPRINTF 1
#if _MSC_VER < 1900
-# define snprintf _snprinf
+# define snprintf _snprintf
#endif
/* Define to 1 if you have the `_chsize' function. */
@@ -187,6 +187,10 @@
/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
supported directly. */
+#if _MSC_VER >= 1700
#define restrict __restrict
+#else
+#define restrict
+#endif
#endif /* NASM_CONFIG_MSVC_H */