diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-17 23:20:11 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:23:30 +0200 |
commit | c0246423b5d340a263cf666d1cdc5972362cb7e3 (patch) | |
tree | 8f1440ced462bdada4a6f945082a9df814930e8f /pianoroll.c | |
parent | 6bf58497fe25026cb7adcdf1a408f24c8ba955e5 (diff) |
support older Pd versions without sys_fopen(), sys_fclose(), and, sys_close()
svn path=/trunk/externals/unauthorized/; revision=16903
Diffstat (limited to 'pianoroll.c')
-rw-r--r-- | pianoroll.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pianoroll.c b/pianoroll.c index 560afb9..900b50a 100644 --- a/pianoroll.c +++ b/pianoroll.c @@ -48,6 +48,13 @@ #include <unistd.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 + /* needed to create a pianoroll from PD's menu void canvas_objtext(t_glist *gl, int xpos, int ypos, int selected, t_binbuf *b); void canvas_startmotion(t_canvas *x); |