Fixed OS X compilation after floating point merge

Header files from Carbon framework caused a few symbol conflicts
This commit is contained in:
alexey.lysiuk 2016-04-09 10:51:19 +03:00 committed by Christoph Oelckers
parent a827bab576
commit daa112e2ac
1 changed files with 6 additions and 0 deletions

View File

@ -169,6 +169,12 @@ else()
set( FMOD_INC_PATH_SUFFIXES PATH_SUFFIXES inc )
set( FMOD_LIB_PATH_SUFFIXES PATH_SUFFIXES lib )
set( NO_GTK ON )
# Prevent inclusion of fp.h and FixMath.h from Carbon framework
# Declarations from these files are not used but cause the following conflicts:
# - redefinition of 'FixedToFloat' and 'FloatToFixed' macros
# - redefinition of 'pi' as different kind of symbol
add_definitions( -D__FP__ -D__FIXMATH__ )
else()
option( NO_GTK "Disable GTK+ dialogs (Not applicable to Windows)" )
option( VALGRIND "Add special Valgrind sequences to self-modifying code" )