pkgsrc/audio/csound/patches/patch-at
wiz c07376c44b Update csound to 4.13.0.2a, provided by Ben Collver in pkg/14631.
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
2002-03-23 02:36:45 +00:00

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