From: Stefan Csomor Date: Tue, 7 Jun 2005 03:25:23 +0000 (+0000) Subject: support mac on little endian systems X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/080c6eeca769ea9e3dbf0461a1ea3a9d4afee7cb support mac on little endian systems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mac/carbon/config_xcode.h b/include/wx/mac/carbon/config_xcode.h index f5b8d20a17..9f341fa8c2 100644 --- a/include/wx/mac/carbon/config_xcode.h +++ b/include/wx/mac/carbon/config_xcode.h @@ -84,7 +84,9 @@ #define SOCKLEN_T socklen_t #define STDC_HEADERS 1 #define TARGET_CARBON 1 +#if __BIG_ENDIAN__ #define WORDS_BIGENDIAN 1 +#endif #define WXWIN_COMPATIBILITY_2_4 1 #define WXWIN_OS_DESCRIPTION "Darwin 7.3.0 Power Macintosh" #define WX_GMTOFF_IN_TM 1 diff --git a/include/wx/platform.h b/include/wx/platform.h index 035b7e78ae..96d9541774 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -555,7 +555,7 @@ #endif #if defined (__WXMAC__) -# ifndef WORDS_BIGENDIAN +# ifndef WORDS_BIGENDIAN && ( !defined(__MACH__) || ( defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ ) ) # define WORDS_BIGENDIAN 1 # endif #endif