diff options
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |