Skip to content

Commit b804a29

Browse files
committed
posix: define M_PI and other stuff in Zephyr sketches
Define _XOPEN_SOURCE=700 to use POSIX 2017 features in the loader and Zephyr sketches.
1 parent 732ec72 commit b804a29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

loader/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ target_sources_ifdef(CONFIG_USB_DEVICE_STACK_NEXT app PRIVATE
2323

2424
FILE(GLOB app_sources *.c)
2525
target_sources(app PRIVATE ${app_sources})
26+
target_compile_definitions(app PUBLIC _XOPEN_SOURCE=700)
2627

2728
target_link_libraries(app PUBLIC blobs)

0 commit comments

Comments
 (0)