Debian Codegraph @

config/watcom.h

raw
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /* Copyright 2016 The NASM Authors - All Rights Reserved */
3
4 /*
5 * config/watcom.h
6 *
7 * Compiler definitions for OpenWatcom instead of config.h.in.
8 * See config.h.in for the variables which can be defined here.
9 *
10 * This was taken from openwcom.mak and needs to be actually validated.
11 */
12
13 #ifndef NASM_CONFIG_WATCOM_H
14 #define NASM_CONFIG_WATCOM_H
15
16 #define HAVE_DECL_STRCASECMP 1
17 #define HAVE_DECL_STRICMP 1
18 #define HAVE_DECL_STRLCPY 1
19 #define HAVE_DECL_STRNCASECMP 1
20 #define HAVE_DECL_STRNICMP 1
21 #ifndef __LINUX__
22 #define HAVE_IO_H 1
23 #endif
24 #define HAVE_LIMITS_H 1
25 #define HAVE_MEMORY_H 1
26 #define HAVE_SNPRINTF 1
27 #if (__WATCOMC__ >= 1230)
28 #undef HAVE__BOOL /* need stdbool.h */
29 #define HAVE_STDBOOL_H 1
30 #define HAVE_INTTYPES_H 1
31 #define HAVE_STDINT_H 1
32 #define HAVE_UINTPTR_T 1
33 #endif
34 #define HAVE_STDLIB_H 1
35 #define HAVE_STRCSPN 1
36 #define HAVE_STRICMP 1
37 #define HAVE_STRNICMP 1
38 #define HAVE_STRSPN 1
39 #define HAVE_STRING_H 1
40 #if (__WATCOMC__ >= 1240)
41 #define HAVE_STRCASECMP 1
42 #define HAVE_STRNCASECMP 1
43 #define HAVE_STRLCPY 1
44 #define HAVE_STRINGS_H 1
45 #endif
46 #define HAVE_SYS_STAT_H 1
47 #define HAVE_SYS_TYPES_H 1
48 #define HAVE_FCNTL_H 1
49 #define HAVE_UNISTD_H 1
50 #define HAVE_VSNPRINTF 1
51 #define STDC_HEADERS 1
52
53 #define HAVE__FULLPATH 1
54 #define HAVE_ACCESS
55 #define HAVE_STRUCT_STAT
56 #define HAVE_STAT
57 #define HAVE_FSTAT
58 #define HAVE_FILENO
59 #ifdef __LINUX__
60 #define HAVE_FTRUNCATE
61 #else
62 #define HAVE_CHSIZE
63 #define HAVE__CHSIZE
64 #endif
65 #define HAVE_ISASCII
66 #define HAVE_ISCNTRL
67
68 #if (__WATCOMC__ >= 1250)
69 #define restrict __restrict
70 #else
71 #define restrict
72 #endif
73 #define inline __inline
74
75 #endif /* NASM_CONFIG_WATCOM_H */