summaryrefslogtreecommitdiff
path: root/emulators/pcemu/patches/patch-af
blob: 7448d862e1e9c640979e4d7411edf0af44311383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-af,v 1.3 2004/07/09 12:45:03 wiz Exp $

--- cpu.h.orig	1994-06-22 16:24:50.000000000 +0200
+++ cpu.h
@@ -113,13 +113,13 @@
     format and back again. Obviously there is nothing to do for little-endian
     machines... */
 
-#if defined(LITTLE_ENDIAN)
+#if BYTE_ORDER == LITTLE_ENDIAN
 #   define ChangeE(x) (WORD)(x)
 #else
 #   define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
 #endif
 
-#if defined(LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS)
+#if BYTE_ORDER == LITTLE_ENDIAN && !defined(ALIGNED_ACCESS)
 #   define ReadWord(x) (*(x))
 #   define WriteWord(x,y) (*(x) = (y))
 #   define CopyWord(x,y) (*x = *y)