mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
include/compiler.h: change __WATCOM__ to __WATCOMC__
The correct macro to test for (Open)Watcom is __WATCOMC__ not __WATCOM__. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
34b5dbe496
commit
e29c7bb241
@ -58,7 +58,7 @@
|
||||
# include "config/config.h"
|
||||
#elif defined(_MSC_VER) && (_MSC_VER >= 1310)
|
||||
# include "config/msvc.h"
|
||||
#elif defined(__WATCOM__)
|
||||
#elif defined(__WATCOMC__)
|
||||
# include "config/watcom.h"
|
||||
#else
|
||||
# include "config/unknown.h"
|
||||
@ -254,7 +254,7 @@ size_t strnlen(const char *s, size_t maxlen);
|
||||
#endif
|
||||
|
||||
/* Watcom doesn't handle switch statements with 64-bit types, hack around it */
|
||||
#ifdef __WATCOM__
|
||||
#ifdef __WATCOMC__
|
||||
# define BOGUS_CASE 0x76543210
|
||||
|
||||
static inline unsigned int watcom_switch_hack(uint64_t x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user