File tree Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Original file line number Diff line number Diff line change 7
7
# define MB_LEN_MAX 4
8
8
#endif
9
9
10
- #ifdef LONG_MAX
11
- # ifdef LONG_MAX == INT32_MAX
12
- # define LONG_BIT 32
13
- # else
14
- /* Safe assumption */
15
- # define LONG_BIT 64
16
- # endif
17
- #elif defined __LONG_MAX__
18
- # if __LONG_MAX__ == INT32_MAX
19
- # define LONG_BIT 32
20
- # else
21
- /* Safe assumption */
22
- # define LONG_BIT 64
23
- # endif
24
- #else
25
- # error "Unsupported configuration, please define either LONG_MAX or __LONG_MAX__"
26
- #endif
27
-
28
10
#undef SCHAR_MIN
29
11
#undef SCHAR_MAX
30
12
#undef CHAR_MIN
99
81
/* POSIX states 9 is the minimum for NL_ARGMAX */
100
82
#define NL_ARGMAX 9
101
83
102
- #if INTPTR_MAX == INT64_MAX
84
+ #if __INTPTR_MAX__ == __INT64_MAX__
103
85
# define SSIZE_MAX LONG_MAX
104
- #elif INTPTR_MAX == INT32_MAX
86
+ #elif __INTPTR_MAX__ == __INT32_MAX__
105
87
# define SSIZE_MAX INT_MAX
106
88
#endif
107
89
90
+ #if __LONG_MAX__ == __INT32_MAX__
91
+ # define LONG_BIT 32
92
+ #else
93
+ /* Safe assumption */
94
+ # define LONG_BIT 64
95
+ #endif
96
+
108
97
#define _POSIX_ARG_MAX 4096
109
98
#define _POSIX_OPEN_MAX 16
110
99
#define _POSIX_HOST_NAME_MAX 255
You can’t perform that action at this time.
0 commit comments