aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/bmatrix~.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/bmatrix~.c b/modules/bmatrix~.c
index 8ba9d8e..4e600e3 100644
--- a/modules/bmatrix~.c
+++ b/modules/bmatrix~.c
@@ -25,6 +25,13 @@
#include <stdlib.h>
#include <string.h>
+/* support older Pd versions without sys_open(), sys_fopen(), sys_fclose() */
+#if PD_MAJOR_VERSION == 0 && PD_MINOR_VERSION < 44
+#define sys_open open
+#define sys_fopen fopen
+#define sys_fclose fclose
+#endif
+
#define MAXORDER 1024
typedef struct matrixctl