Adding missing c99 flag to arduino scons files to match other builds.
Change-Id: I118374979c448981ae2a7ca59648a1d30ca33f5b
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/531
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
env.AppendUnique(CPPPATH = [core_folder])
if is_1_0_x:
- comm_flags = []
+ comm_flags = ['-std=c99']
if mcu:
comm_flags.extend(['-mmcu=' + mcu])
if f_cpu:
else:
cpu_flag = '-mcpu=' + mcu
- comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board')]
+ comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board'), '-std=c99']
if target_arch == 'arm':
comm_flag.extend(['-DARDUINO_ARCH_SAM'])
else:
env.AppendUnique(CPPPATH = [core_folder])
if is_1_0_x:
- comm_flags = []
+ comm_flags = ['-std=c99']
if mcu:
comm_flags.extend(['-mmcu=' + mcu])
if f_cpu:
else:
cpu_flag = '-mcpu=' + mcu
- comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board')]
+ comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board'), '-std=c99']
if target_arch == 'arm':
comm_flag.extend(['-DARDUINO_ARCH_SAM'])
else: