aboutsummaryrefslogtreecommitdiff
path: root/ascwave.c
diff options
context:
space:
mode:
Diffstat (limited to 'ascwave.c')
-rw-r--r--ascwave.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ascwave.c b/ascwave.c
index a4009e5..b2a6654 100644
--- a/ascwave.c
+++ b/ascwave.c
@@ -7,6 +7,13 @@
#include <malloc.h>
#endif
+/* support older Pd versions without sys_fopen(), sys_fclose(), and, sys_close() */
+#if PD_MAJOR_VERSION == 0 && PD_MINOR_VERSION < 44
+#define sys_fopen fopen
+#define sys_fclose fclose
+#define sys_close close
+#endif
+
#ifndef RAND_MAX
#define RAND_MAX 21
#endif