From 1ba83c3c8fe151b72327078425391c3deff9160b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 13 Jan 2009 16:40:12 +0000 Subject: made array-access 64bit compatible svn path=/trunk/externals/zexy/; revision=10529 --- src/zexy.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/zexy.h') diff --git a/src/zexy.h b/src/zexy.h index a0f03a4..0ec9287 100644 --- a/src/zexy.h +++ b/src/zexy.h @@ -140,5 +140,15 @@ static void zexy_register(char*object){object=0;} # define z_verbose #endif +#if (defined __x86_64__) && (defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION > 41) +# define zarray_t t_word +# define zarray_getarray garray_getfloatwords +# define zarray_getfloat(pointer, index) (pointer[index].w_float) +#else +# define zarray_t t_float +# define zarray_getarray garray_getfloatarray +# define zarray_getfloat(pointer, index) (pointer[index]) +#endif + #endif /* INCLUDE_ZEXY_H__ */ -- cgit v1.2.1