From ac8b0890c22d2aa861be05ca20dde1b4ff73acb6 Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Tue, 31 Mar 2015 13:48:35 -0400 Subject: [PATCH] Changed flag from "-std=c99" to "-std=gnu99" to enable arduino due builds. This will allow the stack to use asm. Change-Id: I7565381ea7cc7abf5b71539eb57c0570ae7fced7 Signed-off-by: Joseph Morrow Reviewed-on: https://gerrit.iotivity.org/gerrit/616 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane --- build_common/arduino/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_common/arduino/SConscript b/build_common/arduino/SConscript index 1a34837..756a9b4 100644 --- a/build_common/arduino/SConscript +++ b/build_common/arduino/SConscript @@ -351,7 +351,7 @@ else: else: cpu_flag = '-mcpu=' + mcu - comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board'), '-std=c99'] + comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board'), '-std=gnu99'] if target_arch == 'arm': comm_flag.extend(['-DARDUINO_ARCH_SAM']) else: -- 2.7.4