Skip to content

Commit

Permalink
tests/c_lib: Remove define of _POSIX_C_SOURCE for newlib
Browse files Browse the repository at this point in the history
This test does not use any APIs beyond those provided in the Zephyr
standard set, so it should not define _POSIX_C_SOURCE.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Jan 30, 2024
1 parent 34ca409 commit 177b4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/c_lib/common/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* it guarantee that ALL functionality provided is working correctly.
*/

#if defined(CONFIG_NEWLIB_LIBC) || defined(CONFIG_NATIVE_LIBC)
#if defined(CONFIG_NATIVE_LIBC)
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
Expand Down

0 comments on commit 177b4f2

Please sign in to comment.