aboutsummaryrefslogtreecommitdiff
path: root/iemlib1
diff options
context:
space:
mode:
authormusil <tmusil@users.sourceforge.net>2012-09-11 11:56:00 +0000
committermusil <tmusil@users.sourceforge.net>2012-09-11 11:56:00 +0000
commit78e21523b505712b85951d8def70ea64eacbc6a9 (patch)
treeae8be6dd54fbac381bbefd7956220a7f9fa944a6 /iemlib1
parentb5792287d9e3e2ae07083e79fe354d98fbd73741 (diff)
better #if for iemarray_getarray()
svn path=/trunk/externals/iemlib/; revision=16202
Diffstat (limited to 'iemlib1')
-rw-r--r--iemlib1/src/iemlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iemlib1/src/iemlib.h b/iemlib1/src/iemlib.h
index 29c6276..a4c0e12 100644
--- a/iemlib1/src/iemlib.h
+++ b/iemlib1/src/iemlib.h
@@ -100,7 +100,7 @@ union tabfudge_f
#endif
/* on 64bit systems we cannot use garray_getfloatarray... */
-#if((PD_MAJOR_VERSION)&&(PD_MINOR_VERSION > 40))
+#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)