summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-16 15:28:02 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-16 15:28:02 -0800
commit714ad04bb8cdc5d9f99fd0d6ce45391cdb56ccb9 (patch)
treedea7b909b23d3d3d7c53c8c71387bcfa86039a0b
parent338a3b6882e79aa7f4dc7dd1d508898a7c631ecb (diff)
downloadnasm-714ad04bb8cdc5d9f99fd0d6ce45391cdb56ccb9.tar.gz
Some compilers define __386__ instead of __i386__
OpenWatcom, and possibly other compilers from the DOS universe, defines __386__ rather than __i386__.
-rw-r--r--compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler.h b/compiler.h
index b7f26f2e..ced029c9 100644
--- a/compiler.h
+++ b/compiler.h
@@ -101,7 +101,7 @@ char *strsep(char **, const char *);
* platform which can do unaligned memory references. It is safe
* to leave it defined to 0 even if that is true.
*/
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__386__) || defined(__i386__) || defined(__x86_64__)
# define X86_MEMORY 1
#else
# define X86_MEMORY 0