* Merged changes up to eAthena 15032.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15065 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -195,31 +195,6 @@ elseif( BIG_ENDIAN )
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Test typecast to union
|
||||
#
|
||||
message( STATUS "Check for typecast to union" )
|
||||
set( SOURCECODE
|
||||
"typedef union Foonion{\n"
|
||||
" int i;\n"
|
||||
" unsigned int ui;\n"
|
||||
" const char* s;\n"
|
||||
"} Foonion;\n"
|
||||
"int get_i(Foonion onion){ return onion.i; }\n"
|
||||
"int main(int argc, char** argv){\n"
|
||||
" int i = 0;\n"
|
||||
" return get_i(((Foonion)(int)i));\n"
|
||||
"}\n"
|
||||
)
|
||||
CHECK_C_SOURCE_COMPILES( "${SOURCECODE}" HAVE_TYPECAST_TO_UNION )
|
||||
if( HAVE_TYPECAST_TO_UNION )
|
||||
message( STATUS "Check for typecast to union - yes" )
|
||||
else()
|
||||
message( STATUS "Check for typecast to union - no" )
|
||||
set_property( CACHE GLOBAL_DEFINITIONS PROPERTY VALUE "${GLOBAL_DEFINITIONS} -DDB_MANUAL_CAST_TO_UNION" )
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Test monotonic clock
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user