X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Flog.c;h=351c0bd1a82e35702ddd321024513b967a1b3f8b;hp=ed2e05e9f278e24927a432fb0c76da85bd619f8a;hb=021f5586a328c6600460aa9f9be664ba19ba20d4;hpb=acf93c6b774c7184c35c2b994d4d7764438656d8 diff --git a/src/log.c b/src/log.c index ed2e05e..351c0bd 100644 --- a/src/log.c +++ b/src/log.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: log.c,v 1.47 2007-02-20 09:39:17 adam Exp $ + * $Id: log.c,v 1.48 2007-02-23 10:15:01 adam Exp $ */ /** @@ -36,6 +36,7 @@ #include #include #include +#include #include static NMEM_MUTEX log_mutex = 0; @@ -472,17 +473,8 @@ void yaz_log(int level, const char *fmt, ...) if (!(level & l_level)) return; va_start(ap, fmt); -#ifdef WIN32 - _vsnprintf(buf, sizeof(buf)-1, fmt, ap); -#else -/* !WIN32 */ -#if HAVE_VSNPRINTF - vsnprintf(buf, sizeof(buf), fmt, ap); -#else - vsprintf(buf, fmt, ap); -#endif -#endif -/* WIN32 */ + + yaz_vsnprintf(buf, sizeof(buf)-1, fmt, ap); if (o_level & YLOG_ERRNO) { strcat(buf, " [");