13
0

add _ISOC9X_SOURCE define to compiler command line to provide uniform access to llabs()

This commit is contained in:
Paul Davis 2013-08-01 10:10:21 -04:00
parent 4db277056f
commit 3f423339bc

View File

@ -374,8 +374,12 @@ def set_compiler_flags (conf,opt):
conf.env.append_value('CFLAGS', '-DBOOST_SYSTEM_NO_DEPRECATED')
conf.env.append_value('CXXFLAGS', '-DBOOST_SYSTEM_NO_DEPRECATED')
# need ISOC9X for llabs()
conf.env.append_value('CFLAGS', '-D_ISOC9X_SOURCE')
conf.env.append_value('CFLAGS', '-D_LARGEFILE64_SOURCE')
conf.env.append_value('CFLAGS', '-D_FILE_OFFSET_BITS=64')
# need ISOC9X for llabs()
conf.env.append_value('CXXFLAGS', '-D_ISOC9X_SOURCE')
conf.env.append_value('CXXFLAGS', '-D_LARGEFILE64_SOURCE')
conf.env.append_value('CXXFLAGS', '-D_FILE_OFFSET_BITS=64')