diff options
Diffstat (limited to 'shared/shared.h')
-rw-r--r-- | shared/shared.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/shared.h b/shared/shared.h index ff010eb..b8c88b8 100644 --- a/shared/shared.h +++ b/shared/shared.h @@ -187,4 +187,11 @@ typedef union _shared_floatint #endif #endif +/* 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 + #endif |