cc_name = cc.get_id()
cc_defs = ['-D_GNU_SOURCE']
+if os_name == 'sunos'
+ cc_defs += '-D__EXTENSIONS__'
+endif
+
cc_flags = [cc_defs]
ld_flags = []
if prog_reformat.found()
run_target('reformat', command: [
prog_reformat,
- '--options=@SOURCE_ROOT@/.astylerc',
+ '--options=@SOURCE_ROOT@/.astylerc', '--recursive',
'@SOURCE_ROOT@/*.c', '@SOURCE_ROOT@/*.h',
])
endif