From: Adam Dickmeiss Date: Mon, 19 Mar 2007 12:54:58 +0000 (+0000) Subject: Disable lOG_-defines by default X-Git-Tag: YAZ.before.OID.patch~22 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=97b694eca0f3b0669e57bcca37d6a7bcf3766d58;p=yaz-moved-to-github.git Disable lOG_-defines by default --- diff --git a/include/yaz/log.h b/include/yaz/log.h index 2e416c4..5d52338 100644 --- a/include/yaz/log.h +++ b/include/yaz/log.h @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: log.h,v 1.42 2007-01-03 08:42:14 adam Exp $ */ +/* $Id: log.h,v 1.43 2007-03-19 12:54:58 adam Exp $ */ /** * \file log.h @@ -196,9 +196,8 @@ YAZ_EXPORT void log_event_start(void (*func)(int level, const char *msg, YAZ_EXPORT void log_event_end(void (*func)(int level, const char *msg, void *info), void *info); -/* if syslog.h is already included, do not define the old LOG_'s */ -#ifdef LOG_DEBUG -#undef YAZ_USE_NEW_LOG +/* by default, do not enable the old LOG_-defines */ +#ifndef YAZ_USE_NEW_LOG #define YAZ_USE_NEW_LOG 1 #endif