Skip to content

Commit 0d02cdd

Browse files
committed
添加宏定义__STDC_FORMAT_MACROS到rtconfig.py
Signed-off-by: latercomer <[email protected]>
1 parent c1c001c commit 0d02cdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bsps/sitl/qemu/rtconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_mac_address():
5454
AFPFLAGS = " -mfloat-abi=softfp -mfpu=neon"
5555
DEVICE = " -march=armv7-a -mtune=cortex-a7 -ftree-vectorize -ffast-math -funwind-tables -fno-strict-aliasing"
5656

57-
CXXFLAGS = DEVICE + CFPFLAGS + " -Wall -fdiagnostics-color=always"
57+
CXXFLAGS = DEVICE + CFPFLAGS + " -Wall -fdiagnostics-color=always -D__STDC_FORMAT_MACROS"
5858
CFLAGS = DEVICE + CFPFLAGS + " -Wall -Wno-cpp -std=gnu99 -D_POSIX_SOURCE -fdiagnostics-color=always"
5959
AFLAGS = DEVICE + " -c" + AFPFLAGS + " -x assembler-with-cpp"
6060
LFLAGS = (

pkgs/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ objs = []
1010
inc = [cwd, cwd + "/include", cwd + "/lib"]
1111
src = []
1212

13-
objs += DefineGroup(name="pkg/include", src=[], depend=[], CPPPATH=inc, CPPDEFINES=['__STDC_FORMAT_MACROS'])
13+
objs += DefineGroup(name="pkg/include", src=[], depend=[], CPPPATH=inc)
1414

1515
for d in os.listdir(cwd):
1616
path = os.path.join(cwd, d)

0 commit comments

Comments
 (0)