From 342af4b3a489ec0d3eb0f855467dcdbc51eaec45 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Fri, 21 Nov 2008 22:11:47 +0000 Subject: select garray_getfloatwords() or garray_getfloatarray() depending on pd version. (garray_getfloatwords was not implemented until pd 0.41) svn path=/trunk/externals/mrpeach/; revision=10375 --- tabfind/tabfind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tabfind') diff --git a/tabfind/tabfind.c b/tabfind/tabfind.c index e1c2d2a..e6dbd22 100644 --- a/tabfind/tabfind.c +++ b/tabfind/tabfind.c @@ -4,7 +4,9 @@ #include "m_pd.h" -/* #define USE_GETFLOATWORDS *//* if garray_getfloatwords is implemented */ +#if (PD_MINOR_VERSION > 40) +#define USE_GETFLOATWORDS *//* if garray_getfloatwords is implemented */ +#endif /* garray_getfloatwords uses t_word but doesn't exist in some versions of pd */ /* garray_getfloatarray uses t_float but is not 64-bit */ -- cgit v1.2.1