Skip to content

Commit 6529c84

Browse files
cfriedtkartben
authored andcommitted
libc: newlib: limits.h: include posix limits from zephyr
Newlib does not seem to define a number of mandatory POSIX limits (e.g. minimum values). Include Zephyr's POSIX definitions in an override of Newlib's limits.h (when the appropriate application conformance macro is provided). Signed-off-by: Chris Friedt <[email protected]>
1 parent 25e36f0 commit 6529c84

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/libc/newlib/include/limits.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright The Zephyr Project Contributors
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_LIMITS_H_
8+
#define ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_LIMITS_H_
9+
10+
#include_next <limits.h>
11+
#include <zephyr/posix/posix_limits.h>
12+
13+
#endif /* ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_LIMITS_H_ */

0 commit comments

Comments
 (0)