aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-10-27 11:56:51 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-10-27 11:56:51 +0000
commitb51f222f79a78045b8ffd98fc50bfdc33fda1a25 (patch)
tree63e2524aeede6eba9e0eebf8c245a8c8ec1ce2af /src
parent372bcfd3cd94aa7c33ae37a4623f6abd67976572 (diff)
added a macro for verbose() to take effect when compiled against pd<0.39
svn path=/trunk/externals/zexy/; revision=3768
Diffstat (limited to 'src')
-rw-r--r--src/zexy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zexy.h b/src/zexy.h
index 757ca42..a45c3ba 100644
--- a/src/zexy.h
+++ b/src/zexy.h
@@ -84,5 +84,15 @@ static void zexy_register(char*object){
static void zexy_register(char*object){}
#endif /* ZEXY_LIBRARY */
+#if (defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION > 38)
+/* pd>=0.39 has a verbose() function; older versions don't
+ */
+#else
+/* this might not work on compilers other than gcc
+ * is it ISO-C99 or just a gnu-cpp thing ?
+ */
+# define verbose(level, format, ...) post(format, ## __VA_ARGS__)
+#endif
+
#endif /* INCLUDE_ZEXY_H__ */