File tree Expand file tree Collapse file tree 4 files changed +17
-51
lines changed Expand file tree Collapse file tree 4 files changed +17
-51
lines changed Original file line number Diff line number Diff line change 7
7
#ifndef ZEPHYR_INCLUDE_ZEPHYR_POSIX_POSIX_LIMITS_H_
8
8
#define ZEPHYR_INCLUDE_ZEPHYR_POSIX_POSIX_LIMITS_H_
9
9
10
+ #ifdef __cplusplus
11
+ extern "C" {
12
+ #endif
13
+
14
+ #if defined(_POSIX_C_SOURCE ) || defined(__DOXYGEN__ )
15
+
10
16
/*
11
17
* clang-format and checkpatch disagree on formatting here, so rely on checkpatch and disable
12
18
* clang-format since checkpatch cannot be selectively disabled.
122
128
123
129
/* clang-format on */
124
130
131
+ #else
132
+
133
+ /* FIXME: this should only be exposed when we define _POSIX_C_SOURCE or _XOPEN_SOURCE */
134
+ #define PATH_MAX 256
135
+
136
+ #endif
137
+
138
+ #ifdef __cplusplus
139
+ }
140
+ #endif
141
+
125
142
#endif /* ZEPHYR_INCLUDE_ZEPHYR_POSIX_POSIX_LIMITS_H_ */
Original file line number Diff line number Diff line change 8
8
#define LIB_LIBC_ARCMWDT_INCLUDE_LIMITS_H_
9
9
10
10
#include_next <limits.h>
11
-
12
- #ifdef __cplusplus
13
- extern "C" {
14
- #endif
15
-
16
- #if defined(_POSIX_C_SOURCE ) || defined(__DOXYGEN__ )
17
-
18
11
#include <zephyr/posix/posix_limits.h>
19
12
20
- #else
21
-
22
- #define PATH_MAX 256
23
-
24
- #endif
25
-
26
- #ifdef __cplusplus
27
- }
28
- #endif
29
-
30
13
#endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_LIMITS_H_ */
Original file line number Diff line number Diff line change 8
8
#define ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_LIMITS_H_
9
9
10
10
#include_next <limits.h>
11
-
12
- #ifdef __cplusplus
13
- extern "C" {
14
- #endif
15
-
16
- #if defined(_POSIX_C_SOURCE ) || defined(__DOXYGEN__ )
17
-
18
11
#include <zephyr/posix/posix_limits.h>
19
12
20
- #else
21
-
22
- #define PATH_MAX 256
23
-
24
- #endif
25
-
26
- #ifdef __cplusplus
27
- }
28
- #endif
29
-
30
13
#endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_LIMITS_H_ */
Original file line number Diff line number Diff line change 8
8
#define ZEPHYR_LIB_LIBC_IAR_INCLUDE_LIMITS_H_
9
9
10
10
#include_next <limits.h>
11
-
12
- #ifdef __cplusplus
13
- extern "C" {
14
- #endif
15
-
16
- #if defined(_POSIX_C_SOURCE ) || defined(__DOXYGEN__ )
17
-
18
11
#include <zephyr/posix/posix_limits.h>
19
12
20
- #else
21
-
22
- #define PATH_MAX 256
23
-
24
- #endif
25
-
26
- #ifdef __cplusplus
27
- }
28
- #endif
29
-
30
13
#endif /* ZEPHYR_LIB_LIBC_IAR_INCLUDE_LIMITS_H_ */
You can’t perform that action at this time.
0 commit comments