summaryrefslogtreecommitdiff
path: root/audio/csound-bath/patches/patch-ap
blob: 2e798dba2c6cc287e2a849b2383e2d8cc9a28851 (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
$NetBSD: patch-ap,v 1.2 2002/03/23 02:23:01 wiz Exp $

--- cs.h.orig	Sat Jan 26 05:29:36 2002
+++ cs.h
@@ -18,6 +18,24 @@
 
 #include "version.h"
 
+/*	__BIG_ENDIAN__ is used various places in csound
+	BIG_ENDIAN   is used by the sdif code
+	in NetBSD, (BIG|LITTLE)_ENDIAN is defined by sys/endian.h
+	included in sys/types included in stdlib.h
+*/
+#ifdef __NetBSD__
+#undef BIG_ENDIAN
+#undef LITTLE_ENDIAN
+#if _BYTE_ORDER == _BIG_ENDIAN
+#define __BIG_ENDIAN__
+#define BIG_ENDIAN
+#else
+#define __LITTLE_ENDIAN__
+#define LITTLE_ENDIAN
+#endif /* _BYTE_ORDER */
+#endif /* __NetBSD__ */
+
+
 #define VMSGS 1
 #if VMSGS
 #define VMSG(x) if (odebug) x