openbsd-ports/comms/gmfsk/patches/patch-src_samplerate_common_h

19 lines
522 B
Plaintext

$OpenBSD: patch-src_samplerate_common_h,v 1.1.1.1 2007/05/28 18:47:06 jason Exp $
--- src/samplerate/common.h.orig Fri Nov 4 16:35:02 2005
+++ src/samplerate/common.h Fri Nov 4 16:35:36 2005
@@ -22,8 +22,14 @@
#define SRC_MAX_RATIO 12
#define SRC_MIN_RATIO_DIFF (1e-20)
+#ifdef MAX
+#undef MAX
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
+#endif
+#ifdef MIN
+#undef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif
#define MAKE_MAGIC(a,b,c,d,e,f) ((a)+((b)<<4)+((c)<<8)+((d)<<12)+((e)<<16)+((f)<<20))