From b51f222f79a78045b8ffd98fc50bfdc33fda1a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 27 Oct 2005 11:56:51 +0000 Subject: added a macro for verbose() to take effect when compiled against pd<0.39 svn path=/trunk/externals/zexy/; revision=3768 --- src/zexy.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/zexy.h') 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__ */ -- cgit v1.2.1