From: <ag...@us...> - 2009-06-02 02:20:31
|
Revision: 658 http://zoolib.svn.sourceforge.net/zoolib/?rev=658&view=rev Author: agreen Date: 2009-06-02 02:20:19 +0000 (Tue, 02 Jun 2009) Log Message: ----------- Some x86_64 support. Modified Paths: -------------- trunk/zoolib/source/cxx/zoolib/zconfigl.h Modified: trunk/zoolib/source/cxx/zoolib/zconfigl.h =================================================================== --- trunk/zoolib/source/cxx/zoolib/zconfigl.h 2009-06-02 01:57:35 UTC (rev 657) +++ trunk/zoolib/source/cxx/zoolib/zconfigl.h 2009-06-02 02:20:19 UTC (rev 658) @@ -72,15 +72,21 @@ # define ZCONFIG_Processor ZCONFIG_Processor_x86 # endif # elif defined(__GNUC__) -# if defined(__i386__) || defined(__x86_64__) +# if defined(__i386__) # define ZCONFIG_Processor ZCONFIG_Processor_x86 +# elif defined(__x86_64__) +# define ZCONFIG_Processor ZCONFIG_Processor_x86_64 # elif defined(__ppc__) # define ZCONFIG_Processor ZCONFIG_Processor_PPC # elif defined(__arm__) # define ZCONFIG_Processor ZCONFIG_Processor_ARM # endif # elif defined(_MSC_VER) -# define ZCONFIG_Processor ZCONFIG_Processor_x86 +# if defined(_M_X64) +# define ZCONFIG_Processor ZCONFIG_Processor_x86_64 +# elif defined(_M_IX86) +# define ZCONFIG_Processor ZCONFIG_Processor_x86 +# endif # endif #endif @@ -92,12 +98,16 @@ // Byte order #ifndef ZCONFIG_Endian -# if (ZCONFIG_Processor == ZCONFIG_Processor_x86) +# if (ZCONFIG_Processor == ZCONFIG_Processor_PPC) +# define ZCONFIG_Endian ZCONFIG_Endian_Big +# elif (ZCONFIG_Processor == ZCONFIG_Processor_68K) +# define ZCONFIG_Endian ZCONFIG_Endian_Big +# elif (ZCONFIG_Processor == ZCONFIG_Processor_x86) # define ZCONFIG_Endian ZCONFIG_Endian_Little +# elif (ZCONFIG_Processor == ZCONFIG_Processor_x86_64) +# define ZCONFIG_Endian ZCONFIG_Endian_Little # elif (ZCONFIG_Processor == ZCONFIG_Processor_ARM) # define ZCONFIG_Endian ZCONFIG_Endian_Little -# else -# define ZCONFIG_Endian ZCONFIG_Endian_Big # endif #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |