openbsd-ports/graphics/synaesthesia/patches/patch-syna_h

29 lines
590 B
Plaintext

$OpenBSD: patch-syna_h,v 1.3 2010/05/22 13:43:24 espie Exp $
--- syna.h.orig Thu Jun 8 07:41:06 2000
+++ syna.h Sat May 22 15:26:39 2010
@@ -48,22 +48,13 @@
#define NumSamples (1<<LogSize)
#define RecSize (1<<LogSize-Overlap)
-#ifdef __FreeBSD__
-
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
typedef unsigned short sampleType;
-
#else
-
typedef short sampleType;
-
-#ifndef __linux__
-
-#warning This target has not been tested!
-
#endif
-#endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
#include <machine/endian.h>
#else
#include <endian.h>