summaryrefslogtreecommitdiff
path: root/compiler.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-04-13 20:06:41 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-04-13 20:06:41 +0000
commitc40f89e1c2c8a6ba4b7b86148aacbc0a32bf5b57 (patch)
treee405d2b6af30d3e41a206dc8474e95da253dc653 /compiler.h
parent1a4440ac5860cb410895023b28f812f2c481c041 (diff)
downloadnasm-c40f89e1c2c8a6ba4b7b86148aacbc0a32bf5b57.tar.gz
nasm-c40f89e1c2c8a6ba4b7b86148aacbc0a32bf5b57.tar.bz2
nasm-c40f89e1c2c8a6ba4b7b86148aacbc0a32bf5b57.zip
AIf we have config.h, we should actually include it!!
Apparently configure was generating config.h, and nothing ever actually included it. Include it in nasm.h as well as compiler.h, and in rdoff/rdlar.h which uses these macros. There appears to be no use of HAVE_* macros in any file that doesn't have nasm.h included; in fact, so far the only use has been in rdoff/rdlar.h.
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler.h b/compiler.h
index 0e59f52..b3f77c9 100644
--- a/compiler.h
+++ b/compiler.h
@@ -16,7 +16,11 @@
*/
#ifndef COMPILER_H
-#define COMPILER_H
+#define COMPILER_H 1
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#ifdef __GNUC__
# if __GNUC__ >= 4
@@ -33,4 +37,4 @@
# define _unused
#endif
-#endif
+#endif /* COMPILER_H */