Skip to content

Commit 5439a93

Browse files
Explicitely specify C and C++ standards to use
This does not change anything, it just makes the defaults explicit.
1 parent 5de6192 commit 5439a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/arduino/avr/platform.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ version=1.5.6
1414
# Default "compiler.path" is correct, change only if you want to overidde the initial value
1515
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
1616
compiler.c.cmd=avr-gcc
17-
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD
17+
compiler.c.flags=-c -g -Os -w -std=gnu99 -ffunction-sections -fdata-sections -MMD
1818
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
1919
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
2020
compiler.c.elf.flags=-w -Os -Wl,--gc-sections
2121
compiler.c.elf.cmd=avr-gcc
2222
compiler.S.flags=-c -g -x assembler-with-cpp
2323
compiler.cpp.cmd=avr-g++
24-
compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD
24+
compiler.cpp.flags=-c -g -Os -w -std=gnu++98 -fno-exceptions -ffunction-sections -fdata-sections -MMD
2525
compiler.ar.cmd=avr-ar
2626
compiler.ar.flags=rcs
2727
compiler.objcopy.cmd=avr-objcopy

0 commit comments

Comments
 (0)