X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fyaz-util.h;h=aba53c0569a08658421f63ecbc42e3c7fb4d8978;hp=b4b3207894c3cc50dd7af40232df5c61584b2a10;hb=769837bc0ae28324b0a793549e1a20036e42e2e5;hpb=8862e24160fcdd1d99da8b8203e6d4fe942b91de diff --git a/include/yaz/yaz-util.h b/include/yaz/yaz-util.h index b4b3207..aba53c0 100644 --- a/include/yaz/yaz-util.h +++ b/include/yaz/yaz-util.h @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: yaz-util.h,v 1.12 2004-12-08 09:06:06 adam Exp $ + * $Id: yaz-util.h,v 1.13 2004-12-10 10:42:33 heikki Exp $ */ /** * \file yaz-util.h @@ -36,7 +36,24 @@ #include #include #include + +/* [y]log.h trickery */ +/* if [y]log.h has been included, do not worry about it */ +/* else warn here, and make sure log.h does not warn */ + +#ifndef YLOG_H + +#ifndef YAZ_USE_OLD_LOG +#warning "yaz-util.h is deprecated - include the files directly, and use ylog.h" +/* If you get tired of this message, configure your program like this */ +/* CFLAGS="-Wall -g -D YAZ_USE_OLD_LOG" ./configure */ +#define YAZ_USE_OLD_LOG +/* do not complain of the old log.h */ +#endif + #include +#endif + #include #include #include