Changes unknown, package changes: * the c-preprocessor should now correctly chose whether to build big-endian or little-endian specific code * added support for NetBSD native audio API
30 lines
698 B
Text
30 lines
698 B
Text
$NetBSD: patch-at,v 1.1 2002/03/23 02:36:48 wiz Exp $
|
|
|
|
--- cs.h.orig Sat May 19 03:29:57 2001
|
|
+++ cs.h
|
|
@@ -8,6 +8,25 @@
|
|
|
|
#include "new-src/config.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
|
|
+ WORDS_BIGENDIAN is defined in new-src/config.h, info autoconf
|
|
+ */
|
|
+#ifdef __NetBSD__
|
|
+#undef BIG_ENDIAN
|
|
+#undef LITTLE_ENDIAN
|
|
+#endif
|
|
+
|
|
+#ifdef WORDS_BIGENDIAN
|
|
+#define __BIG_ENDIAN__
|
|
+#define BIG_ENDIAN
|
|
+#else
|
|
+#define __LITTLE_ENDIAN__
|
|
+#define LITTLE_ENDIAN
|
|
+#endif
|
|
+
|
|
#define VMSGS 1
|
|
#if VMSGS
|
|
#define VMSG(x) if (odebug) x
|