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 /blinkenlights.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 'blinkenlights.c')
-rw-r--r-- | blinkenlights.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/blinkenlights.c b/blinkenlights.c index 1e49474..bd39fbe 100644 --- a/blinkenlights.c +++ b/blinkenlights.c @@ -53,6 +53,13 @@ #include "m_pd.h" /* standard pd stuff */ #include "g_canvas.h" /* some pd's graphical functions */ +/* 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 + static char *blinkenlights_version = "blinkenlights: a blinkenlights movies player version 0.2 ( bugs @ ydegoyon@free.fr and chun@goto10.org )"; static int guidebug=0; |