From 21ff032fa838b3aa2adf2db77ce2a27d12813c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 22 Oct 2007 10:18:48 +0000 Subject: removed zexyconf.h as it was too easy to enable the wrong stuff when not using copnfigure (e.g. in ./externals/build/src) instead we just do it ordinarily: configure will define HAVE_CONFIG_H in Make.config, and if this is set we include zexyconf.h, else we don't svn path=/trunk/externals/zexy/; revision=8857 --- src/zexy.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/zexy.h') diff --git a/src/zexy.h b/src/zexy.h index 091fd5e..357b412 100644 --- a/src/zexy.h +++ b/src/zexy.h @@ -39,13 +39,13 @@ # endif #endif -/* usually the re-inclusion magic is done in the header-file itself - * however, we do it outside, so we can force zexyconf.h to not be used - * (e.g. from by definig the INCLUDE_SH1T in externals/build/src/...) +/* + * to use the zexyconf.h compile-time configurations, you have to set HAVE_CONFIG_H + * usually this is done in Make.config by configure */ -#ifndef INCLUDE_ZEXYCONF_H__ +#ifdef HAVE_CONFIG_H # include "zexyconf.h" -#endif /* INCLUDE_ZEXYCONF_H__ */ +#endif /* HAVE_CONFIG_H */ #include "m_pd.h" @@ -121,11 +121,7 @@ static void zexy_register(char*object){object=0;} void verbose(int level, const char *fmt, ...); #else /* - * this might not work on compilers other than gcc - * is it ISO-C99 or just a gnu-cpp thing ? - # define z_verbose(level, format, ...) post(format, ## __VA_ARGS__) - * - * so we make it simpler: on older version we just shut up! + * on older version we just shut up! */ # define z_verbose #endif -- cgit v1.2.1