summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-01-27 14:29:40 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2016-01-27 14:29:40 -0800
commite8677d68186f5faadf30869b22abcd730bc293fc (patch)
treee837d2faabdbcdc891b94a4ba922039db2bcccde
parent064af69d627f26970b5763dbf984ce7ecd5fe4ea (diff)
downloadnasm-e8677d68186f5faadf30869b22abcd730bc293fc.tar.gz
compiler.h: disable __STRICT_ANSI__ for djgpp
Undefine __STRICT_ANSI__ for djgpp; it removes the prototypes for non-ANSI functions which is not at all what this symbol is intended for. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--compiler.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler.h b/compiler.h
index 62425c82..de7c0e4f 100644
--- a/compiler.h
+++ b/compiler.h
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- *
*
- * Copyright 2007-2009 The NASM Authors - All Rights Reserved
+ * Copyright 2007-2016 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
@@ -43,6 +43,11 @@
#ifndef NASM_COMPILER_H
#define NASM_COMPILER_H 1
+#ifdef __DJGPP__
+/* DJGPP has header file problems if __STRICT_ANSI__ is defined */
+# undef __STRICT_ANSI__
+#endif
+
#ifdef HAVE_CONFIG_H
# include "config.h"
/* autoconf doesn't define these if they are redundant, but we want to