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:
H. Peter Anvin 2017-02-28 23:05:17 -08:00
parent 34b5dbe496
commit e29c7bb241

View File

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