aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:55:11 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:55:11 +0000
commit63efd02495c31fd5f7c952d27c5d52f2268c7d9b (patch)
treed35b9e1bb5ffbf4d1f0a3ff51d3228dd9a90ccdc
parent1fa346336ecaab6f5598e79e92da3767e51a08b8 (diff)
support older Pd versions without sys_open(), sys_fopen(), sys_fclose()HEADsvn2git-headexternals/creb
svn path=/trunk/externals/creb/; revision=16952
-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