aboutsummaryrefslogtreecommitdiff
path: root/mp3fileout~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-17 23:20:11 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:23:30 +0200
commitc0246423b5d340a263cf666d1cdc5972362cb7e3 (patch)
tree8f1440ced462bdada4a6f945082a9df814930e8f /mp3fileout~.c
parent6bf58497fe25026cb7adcdf1a408f24c8ba955e5 (diff)
support older Pd versions without sys_fopen(), sys_fclose(), and, sys_close()
svn path=/trunk/externals/unauthorized/; revision=16903
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 */