ztest: undefine _POSIX_C_SOURCE before defining it

Undefine _POSIX_C_SOURCE before defining it to avoid double
definition

The previous version, changed in this PR
https://github.com/zephyrproject-rtos/zephyr/pull/70363, did the undef.
Make sure to do the same for all files in the current dir.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
This commit is contained in:
Dawid Niedzwiecki 2024-08-12 11:52:57 +02:00 committed by Carles Cufí
commit c2151ad1e3

View file

@ -18,7 +18,7 @@ endif()
zephyr_library() zephyr_library()
# For strtok_r() and strdup() # For strtok_r() and strdup()
zephyr_library_compile_options(-D_POSIX_C_SOURCE=200809L) zephyr_library_compile_options(-U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L)
zephyr_library_sources( zephyr_library_sources(
src/ztest.c src/ztest.c