summaryrefslogtreecommitdiff
path: root/snd/sndwin32.h
diff options
context:
space:
mode:
Diffstat (limited to 'snd/sndwin32.h')
-rw-r--r--snd/sndwin32.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/snd/sndwin32.h b/snd/sndwin32.h
new file mode 100644
index 0000000..f1bb1c3
--- /dev/null
+++ b/snd/sndwin32.h
@@ -0,0 +1,16 @@
+/* sndwin32.h -- system-specific definitions */
+
+typedef double FASTFLOAT;
+typedef float MEMFLOAT;
+
+/* avoid conflicts if already defined: */
+#ifndef max
+
+/* min(n, sizeof(long)) doesn't work on RS6K without this:
+ * (I never tracked down what min() was called and what was wrong.)
+ */
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#define max(a, b) ((a) > (b) ? (a) : (b))
+
+#endif
+