summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-02-18 11:57:53 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2016-02-18 11:57:53 -0800
commitb423c02ad2fa97310ea72968540e38e70d73c43e (patch)
tree02eb6739205bd52eeb47ce9cbf60e20ec3b708b2
parentdea76e77793238bd35230413dfc962a1e7f03e00 (diff)
downloadnasm-b423c02ad2fa97310ea72968540e38e70d73c43e.tar.gz
Platform compatibility improvements
Windows: indicate that we support multibyte character sets in file names. Unix: support gigantic input and output files. Might be useful especially in the presence of the INCBIN directive. Signed-off-by: H. Peter Anvin <hpa@linux.kernel.org>
-rw-r--r--compiler.h3
-rw-r--r--configure.in1
2 files changed, 4 insertions, 0 deletions
diff --git a/compiler.h b/compiler.h
index e9022f86..4a68576c 100644
--- a/compiler.h
+++ b/compiler.h
@@ -48,6 +48,9 @@
# undef __STRICT_ANSI__
#endif
+/* On Microsoft platforms we support multibyte character sets in filenames */
+#define _MBCS 1
+
#ifdef HAVE_CONFIG_H
# include "config.h"
/* autoconf doesn't define these if they are redundant, but we want to
diff --git a/configure.in b/configure.in
index 023bd240..5164f4db 100644
--- a/configure.in
+++ b/configure.in
@@ -49,6 +49,7 @@ AC_PREFIX_PROGRAM(nasm)
dnl Checks for programs.
dnl Consider AC_USE_SYSTEM_EXTENSIONS if autoconf 2.61 is OK in the future
AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_MAKE_SET