openbsd-ports/graphics/synaesthesia/patches/patch-syna_h
2002-09-08 07:43:52 +00:00

29 lines
589 B
Plaintext

$OpenBSD: patch-syna_h,v 1.2 2002/09/08 07:43:52 mark Exp $
--- syna.h.orig Wed Jun 7 22:41:06 2000
+++ syna.h Sun Sep 8 00:38:45 2002
@@ -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>