diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-10-27 11:56:51 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-10-27 11:56:51 +0000 |
commit | b51f222f79a78045b8ffd98fc50bfdc33fda1a25 (patch) | |
tree | 63e2524aeede6eba9e0eebf8c245a8c8ec1ce2af | |
parent | 372bcfd3cd94aa7c33ae37a4623f6abd67976572 (diff) |
added a macro for verbose() to take effect when compiled against pd<0.39
svn path=/trunk/externals/zexy/; revision=3768
-rw-r--r-- | src/zexy.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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__ */ |