Fixed place for YAZ_END_CDECL
[yaz-moved-to-github.git] / include / yaz / log.h
index 017a5bb..916ce42 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.23 2004-11-26 10:58:38 heikki Exp $
+ * $Id: log.h,v 1.26 2004-12-09 09:37:00 adam Exp $
  */
 
 /**
 #define LOG_H
 
 #include <yaz/ylog.h>
-#warning "use of log.h is deprecated, use ylog.h instead"
 
-#include <stdio.h>
-#include <yaz/yconfig.h>
-#include <yaz/xmalloc.h>
+#ifndef YAZ_USE_OLD_LOG
+/* #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
 
 YAZ_BEGIN_CDECL
 
@@ -70,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