瀏覽代碼

Replace defined(linux) with __linux__/__linux/linux in vcmi_endian.h

Ilya Zhuravlev 11 年之前
父節點
當前提交
3c35b3eefe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/vcmi_endian.h

+ 1 - 1
lib/vcmi_endian.h

@@ -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 )); };