aboutsummaryrefslogtreecommitdiff
path: root/mp3fileout~.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp3fileout~.c')
-rw-r--r--mp3fileout~.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mp3fileout~.c b/mp3fileout~.c
index 69e76fa..ecbdfb2 100644
--- a/mp3fileout~.c
+++ b/mp3fileout~.c
@@ -59,6 +59,12 @@
#define MSG_NOSIGNAL 0
#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
#include "mpg123.h" /* mpg123 decoding library from lame 3.92 */
#include "mpglib.h" /* mpglib decoding library from lame 3.92 */