mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
portability: Watcom C portability updates
- config/watcom.h: update. - Mkfiles/openwcom.mak: -wcd=124 to silence "Comparison result always 0" warnings from error.h::debug_level() Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
1348627b72
commit
1969dab9c6
@ -14,13 +14,13 @@ mandir = $(prefix)\man
|
||||
|
||||
CC = *wcl386
|
||||
DEBUG =
|
||||
CFLAGS = -zq -6 -ox -wx -ze -fpi $(DEBUG)
|
||||
CFLAGS = -zq -6 -ox -wx -wcd=124 -ze -fpi $(DEBUG)
|
||||
BUILD_CFLAGS = $(CFLAGS) $(%TARGET_CFLAGS)
|
||||
INTERNAL_CFLAGS = -I$(srcdir) -I. -I$(srcdir)\include -I$(srcdir)\x86 -Ix86 -I$(srcdir)\asm -Iasm -I$(srcdir)\disasm -I$(srcdir)\output
|
||||
ALL_CFLAGS = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
|
||||
LD = *wlink
|
||||
LDEBUG =
|
||||
LDFLAGS = op quiet $(%TARGET_LFLAGS) $(LDEBUG)
|
||||
LDFLAGS = op q $(%TARGET_LFLAGS) $(LDEBUG)
|
||||
LIBS =
|
||||
STRIP = wstrip
|
||||
|
||||
|
@ -48,32 +48,39 @@
|
||||
#define HAVE_DECL_STRLCPY 1
|
||||
#define HAVE_DECL_STRNCASECMP 1
|
||||
#define HAVE_DECL_STRNICMP 1
|
||||
#define HAVE_INTTYPES_H 1
|
||||
#ifndef __LINUX__
|
||||
#define HAVE_IO_H 1
|
||||
#endif
|
||||
#define HAVE_LIMITS_H 1
|
||||
#define HAVE_MEMORY_H 1
|
||||
#define HAVE_SNPRINTF 1
|
||||
#if (__WATCOMC__ >= 1230)
|
||||
#undef HAVE__BOOL /* need stdbool.h */
|
||||
#define HAVE_STDBOOL_H 1
|
||||
#define HAVE_INTTYPES_H 1
|
||||
#define HAVE_STDINT_H 1
|
||||
#define HAVE_UINTPTR_T 1
|
||||
#endif
|
||||
#define HAVE_STDLIB_H 1
|
||||
#define HAVE_STRCASECMP 1
|
||||
#define HAVE_STRCSPN 1
|
||||
#define HAVE_STRICMP 1
|
||||
#define HAVE_STRINGS_H 1
|
||||
#define HAVE_STRING_H 1
|
||||
#define HAVE_STRLCPY 1
|
||||
#define HAVE_STRNCASECMP 1
|
||||
#define HAVE_STRNICMP 1
|
||||
#define HAVE_STRSPN 1
|
||||
#define HAVE_STRING_H 1
|
||||
#if (__WATCOMC__ >= 1240)
|
||||
#define HAVE_STRCASECMP 1
|
||||
#define HAVE_STRNCASECMP 1
|
||||
#define HAVE_STRLCPY 1
|
||||
#define HAVE_STRINGS_H 1
|
||||
#endif
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
#define HAVE_FCNTL_H 1
|
||||
#define HAVE_UNISTD_H 1
|
||||
#define HAVE_VSNPRINTF 1
|
||||
#define STDC_HEADERS 1
|
||||
#define inline __inline
|
||||
|
||||
#define HAVE__FULLPATH 1
|
||||
#define HAVE_ACCESS
|
||||
#define HAVE_STRUCT_STAT
|
||||
#define HAVE_STAT
|
||||
@ -85,5 +92,14 @@
|
||||
#define HAVE_CHSIZE
|
||||
#define HAVE__CHSIZE
|
||||
#endif
|
||||
#define HAVE_ISASCII
|
||||
#define HAVE_ISCNTRL
|
||||
|
||||
#if (__WATCOMC__ >= 1250)
|
||||
#define restrict __restrict
|
||||
#else
|
||||
#define restrict
|
||||
#endif
|
||||
#define inline __inline
|
||||
|
||||
#endif /* NASM_CONFIG_WATCOM_H */
|
||||
|
Loading…
Reference in New Issue
Block a user