Define YAZ_USE_NEW_LOG=1 if app require YAZ > 2.0.28
[yaz-moved-to-github.git] / include / yaz / log.h
index 115bc50..fb4561f 100644 (file)
@@ -23,7 +23,7 @@
  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  * OF THIS SOFTWARE.
  *
- * $Id: log.h,v 1.24 2004-11-26 11:06:29 heikki Exp $
+ * $Id: log.h,v 1.27 2004-12-10 10:42:33 heikki Exp $
  */
 
 /**
 #include <yaz/ylog.h>
 
 #ifndef YAZ_USE_OLD_LOG
-#warning "use of log.h is deprecated, use ylog.h instead"
+#warning "use of log.h is deprecated, use ylog.h instead" 
 /* if this warning gets on your nerves, run configure like this:
  * CFLAGS="-Wall -g -D YAZ_USE_OLD_LOG" ./configure
  */
 #endif
 
-#include <stdio.h>
-#include <yaz/yconfig.h>
-#include <yaz/xmalloc.h>
-
 YAZ_BEGIN_CDECL
 
 /* The old LOG_ bit names are here for compatibility only. They may 
@@ -76,5 +72,6 @@ YAZ_BEGIN_CDECL
 /* logf is deprecated, as it conflicts with a math function */
 #define logf yaz_log
 
-#endif
 YAZ_END_CDECL
+
+#endif