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 Dec 29, 2023
1 parent 7411af2 commit 123bdfb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/lib/c_lib/common/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
* it guarantee that ALL functionality provided is working correctly.
*/

#ifdef CONFIG_NEWLIB_LIBC
#define _POSIX_C_SOURCE 200809L
#endif

#include <zephyr/kernel.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/ztest.h>
Expand Down

0 comments on commit 123bdfb

Please sign in to comment.