From 415e738feb188909dea60831aef07c4fb0fe0f17 Mon Sep 17 00:00:00 2001 From: eathenabot Date: Sun, 11 Dec 2011 21:06:25 +0000 Subject: * Merged changes up to eAthena 15032. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15065 54d463be-8e91-2dee-dedb-b68131a5f0ec --- CMakeLists.txt | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0aee569a3..51fc2e39e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 # -- cgit v1.2.3-60-g2f50