diff options
author | musil <tmusil@users.sourceforge.net> | 2012-09-11 12:01:13 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2012-09-11 12:01:13 +0000 |
commit | 9b1d62189a280bad8daf3e131d7102ac0bc4a27c (patch) | |
tree | d11600b10abb55d880a84e16e8a5f874431f8231 /externals/iem | |
parent | 62296ef69789cf24022e448cf5ebef9e124c8f6f (diff) |
better #if for iemarray_getarray()
svn path=/trunk/; revision=16208
Diffstat (limited to 'externals/iem')
-rw-r--r-- | externals/iem/iem_atan2/src/iemlib.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/externals/iem/iem_atan2/src/iemlib.h b/externals/iem/iem_atan2/src/iemlib.h index 97b088ba..a4c0e125 100644 --- a/externals/iem/iem_atan2/src/iemlib.h +++ b/externals/iem/iem_atan2/src/iemlib.h @@ -1,7 +1,7 @@ /* For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. -iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2009 */ +iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2011 */ #ifndef __IEMLIB_H__ #define __IEMLIB_H__ @@ -100,7 +100,7 @@ union tabfudge_f #endif /* on 64bit systems we cannot use garray_getfloatarray... */ -#if (defined __x86_64__) +#if ((defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION > 40) # define iemarray_t t_word # define iemarray_getarray garray_getfloatwords # define iemarray_getfloat(pointer, index) (pointer[index].w_float) @@ -112,5 +112,4 @@ union tabfudge_f # define iemarray_setfloat(pointer, index, fvalue) (pointer[index] = fvalue) #endif - #endif |