Skip to content

Commit c4294d8

Browse files
committed
posix: define M_PI and other stuff in Zephyr sketches
1 parent 732ec72 commit c4294d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ compiler.define=-DARDUINO=
3939
compiler.zephyr.includes_file={build.variant.path}/includes.txt
4040
compiler.zephyr.cflags_file={build.variant.path}/cflags.txt
4141
compiler.zephyr.cxxflags_file={build.variant.path}/cxxflags.txt
42-
compiler.zephyr.macros="-imacros{build.variant.path}/llext-edk/include/zephyr/include/generated/zephyr/autoconf.h" "-imacros{build.variant.path}/llext-edk/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h"
42+
compiler.zephyr.macros="-imacros{build.variant.path}/llext-edk/include/zephyr/include/generated/zephyr/autoconf.h" "-imacros{build.variant.path}/llext-edk/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h" -D_XOPEN_SOURCE=700
4343
compiler.zephyr.common_cxxflags=-fdata-sections -ffunction-sections -fno-unwind-tables
4444
compiler.zephyr.common_ldflags=-fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-unwind-tables -fno-use-cxa-atexit -lstdc++ -lsupc++ -lnosys -nostdlib
4545

0 commit comments

Comments
 (0)