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:
parent
73b6bf2651
commit
c2151ad1e3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue