$NetBSD: patch-af,v 1.1 2003/12/13 20:26:03 ben Exp $ --- include/cs.h.orig 2003-02-25 19:24:01.000000000 -0800 +++ include/cs.h @@ -21,6 +21,24 @@ extern "C" { #include "Csound/csound.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 +#endif + +#if _BYTE_ORDER == _BIG_ENDIAN +#define __BIG_ENDIAN__ +#define BIG_ENDIAN +#else +#define __LITTLE_ENDIAN__ +#define LITTLE_ENDIAN +#endif + #define VMSGS 1 #if VMSGS #define VMSG(x) if ((cglob.oparms)->odebug) x