X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Flog.h;h=5d52338ec26179e8187a5152a802cc9dee5ba72e;hb=ffc156e81106f536a43f949379cee95b16e0c957;hp=e1c4d84367e87946f79fa17f28caa3e644355ffb;hpb=6ed38c528705580734b1f5b12f6de638c26abba5;p=yaz-moved-to-github.git diff --git a/include/yaz/log.h b/include/yaz/log.h index e1c4d84..5d52338 100644 --- a/include/yaz/log.h +++ b/include/yaz/log.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2006, Index Data + * Copyright (c) 1995-2007, Index Data * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -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.41 2007-01-01 22:56:37 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