aboutsummaryrefslogtreecommitdiff
path: root/packages/patches/macintel-0.39.2.patch
blob: 226de8e37dc2b12f4dc31f190e9805c87afc2a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Index: configure.in
===================================================================
RCS file: /cvsroot/pure-data/pd/src/configure.in,v
retrieving revision 1.15
diff -u -w -r1.15 configure.in
--- configure.in	16 Aug 2005 04:06:28 -0000	1.15
+++ configure.in	16 Sep 2006 17:19:16 -0000
@@ -265,7 +265,13 @@
 	-I../portmidi/pm_common -I../portmidi/pm_mac \
 	-I../portmidi/porttime \
 	-Wno-error \
-	-DUSEAPI_PORTAUDIO -DPA_BIG_ENDIAN -DPA19 -DPA_USE_COREAUDIO"
+	-DUSEAPI_PORTAUDIO -DPA19 -DPA_USE_COREAUDIO"
+	 if test `uname -p` == powerpc;
+	 then
+		  MORECFLAGS="$MORECFLAGS -DPA_BIG_ENDIAN"
+	 else
+		  MORECFLAGS="$MORECFLAGS -DPA_LITTLE_ENDIAN"
+	 fi
     SYSSRC="s_midi_pm.c s_audio_pa.c \
     	s_audio_pablio.c     \
 	s_audio_paring.c     \
Index: d_array.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_array.c,v
retrieving revision 1.5
diff -u -w -r1.5 d_array.c
--- d_array.c   11 Nov 2004 04:58:21 -0000      1.5
+++ d_array.c   16 Sep 2006 18:11:29 -0000
@@ -540,12 +540,16 @@
 #define int32 int32_t
 
 #else
-#ifdef MACOSX
+#ifdef __APPLE__
+#define int32 int  /* a data type that has 32 bits */
+# ifdef __BIG_ENDIAN__
 #define HIOFFSET 0    /* word offset to find MSB */
 #define LOWOFFSET 1    /* word offset to find LSB */
-#define int32 int  /* a data type that has 32 bits */
-
-#endif /* MACOSX */
+# else 
+# define HIOFFSET 1    /* word offset to find MSB */
+# define LOWOFFSET 0    /* word offset to find LSB */
+#endif /* __BIG_ENDIAN__ */
+#endif /* __APPLE__ */
 #endif /* __linux__ */
 #endif /* MSW */
 #endif /* SGI */