From c0246423b5d340a263cf666d1cdc5972362cb7e3 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 17 Jan 2013 23:20:11 +0000 Subject: support older Pd versions without sys_fopen(), sys_fclose(), and, sys_close() svn path=/trunk/externals/unauthorized/; revision=16903 --- pianoroll.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pianoroll.c') diff --git a/pianoroll.c b/pianoroll.c index 560afb9..900b50a 100644 --- a/pianoroll.c +++ b/pianoroll.c @@ -48,6 +48,13 @@ #include #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); -- cgit v1.2.1