Some compilers define __386__ instead of __i386__

OpenWatcom, and possibly other compilers from the DOS universe,
defines __386__ rather than __i386__.
This commit is contained in:
H. Peter Anvin 2008-02-16 15:28:02 -08:00
parent 338a3b6882
commit 714ad04bb8

View File

@ -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