1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/audio/pd/files/patch-extra_paf~_paf~.c
Kris Kennaway 280725774f Add pd-0.35.23
Pd is a real-time graphical programming environment for audio and
   graphical processing. It resembles the Max/MSP system but is much
   simpler and more portable; also Pd has two features not (yet) showing
   up in Max/MSP: first, via Mark Dank's GEM package, Pd can be used
   for simultaneous computer animation and computer audio. Second, an
   experimental facility is provided for defining and accessing data
   structures.

Submitted by:	trevor
2002-05-25 11:48:29 +00:00

24 lines
617 B
C

--- extra/paf~/paf~.c.orig Wed Mar 6 18:58:30 2002
+++ extra/paf~/paf~.c Fri May 24 23:15:15 2002
@@ -161,6 +161,20 @@ static void linenv_set(t_linenv *l, floa
#define DONE_MACHINE_TYPE
#endif /* MACOSX */
+#ifdef __FreeBSD__
+#include <machine/endian.h>
+#if BYTE_ORDER == LITTLE_ENDIAN
+#define HIOFFSET 1
+#define LOWOFFSET 0
+#else
+#define HIOFFSET 0 /* word offset to find MSB */
+#define LOWOFFSET 1 /* word offset to find LSB */
+#endif /* BYTE_ORDER */
+#include <sys/types.h>
+#define int32 int32_t
+#define DONE_MACHINE_TYPE
+#endif /* __FreeBSD__ */
+
#ifdef __linux__
#include <endian.h>