diff options
| author | 2008-04-11 12:36:55 +0000 | |
|---|---|---|
| committer | 2008-04-11 12:36:55 +0000 | |
| commit | d308f827fe62e6513bf59cc92aa62bb118f1ae66 (patch) | |
| tree | ee4e34eadbad0ce27d870a5aaf738e9404178703 /src | |
| parent | fixed selectionChanged (the KviTextIconEditor need more work) (diff) | |
| download | KVIrc-d308f827fe62e6513bf59cc92aa62bb118f1ae66.tar.gz KVIrc-d308f827fe62e6513bf59cc92aa62bb118f1ae66.tar.bz2 KVIrc-d308f827fe62e6513bf59cc92aa62bb118f1ae66.zip | |
Fix endianness issues on MacOSX
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1454 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvilib/config/kvi_settings.h | 9 | ||||
| -rw-r--r-- | src/kvilib/system/kvi_byteorder.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/kvilib/config/kvi_settings.h b/src/kvilib/config/kvi_settings.h index 473391dca..6ab04685b 100644 --- a/src/kvilib/config/kvi_settings.h +++ b/src/kvilib/config/kvi_settings.h @@ -148,4 +148,13 @@ #define debug qDebug +// Trust Qt about the current target processor endianness +#if Q_BYTE_ORDER == Q_BIG_ENDIAN + #define BIG_ENDIAN_MACHINE_BYTE_ORDER +#else + #ifdef BIG_ENDIAN_MACHINE_BYTE_ORDER + #undef BIG_ENDIAN_MACHINE_BYTE_ORDER + #endif +#endif + #endif //_KVI_SETTINGS_H_ diff --git a/src/kvilib/system/kvi_byteorder.h b/src/kvilib/system/kvi_byteorder.h index 19b07e632..dcd8c9430 100644 --- a/src/kvilib/system/kvi_byteorder.h +++ b/src/kvilib/system/kvi_byteorder.h @@ -38,6 +38,8 @@ // Perverse Middle Endian 0xbb 0xaa 0xdd 0xcc or another braindamaged combination (unsupported) // Network Byte Order is Big Endian // Intel Stuff uses Little Endian +// PPC is Big Endian +// Universal binaries on MacOSX use both Big and Little Endian // #ifdef BIG_ENDIAN_MACHINE_BYTE_ORDER |
