diff options
-rw-r--r-- | ascwave.c | 7 | ||||
-rw-r--r-- | proc.c | 7 |
2 files changed, 14 insertions, 0 deletions
@@ -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 @@ -12,6 +12,13 @@ // later for number of users // #include <utmp.h> +/* 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 SSIZE_MAX #define SSIZE_MAX 255 #endif |