1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Merge pull request #7 from xyzz/fix_ifdef_linux

Replace defined(linux) with __linux__/__linux/linux in vcmi_endian.h
This commit is contained in:
Ivan Savenko 2014-05-14 22:45:01 +03:00
commit ccc5c69fa2

View File

@ -19,7 +19,7 @@
* memory. On big endian machines, the value will be byteswapped.
*/
#if defined(linux) && (defined(sparc) || defined(__arm__))
#if (defined(linux) || defined(__linux) || defined(__linux__)) && (defined(sparc) || defined(__arm__))
/* SPARC does not support unaligned memory access. Let gcc know when
* to emit the right code. */
struct unaligned_Uint16 { ui16 val __attribute__(( packed )); };