diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-01-13 16:40:12 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-01-13 16:40:12 +0000 |
commit | 1ba83c3c8fe151b72327078425391c3deff9160b (patch) | |
tree | e2402298d19fd22eee1ed47b42ad73906b688bdd /src/zexy.h | |
parent | 8e38549e10aeaab8cdcf9ffd061d6d09a00c7291 (diff) |
made array-access 64bit compatible
svn path=/trunk/externals/zexy/; revision=10529
Diffstat (limited to 'src/zexy.h')
-rw-r--r-- | src/zexy.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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__ */ |