From c55cfc080af8a6fea00ed51c7bb88af80e203107 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 10 Feb 2011 10:20:46 +0100 Subject: [PATCH] Check for USEMARCON version --- src/proxyp.h | 1 + src/yaz-usemarcon.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/proxyp.h b/src/proxyp.h index 5ffc8e8..96db01e 100644 --- a/src/proxyp.h +++ b/src/proxyp.h @@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #if HAVE_USEMARCON #include +#include #endif #include diff --git a/src/yaz-usemarcon.cpp b/src/yaz-usemarcon.cpp index 6b45a03..72dd3dc 100644 --- a/src/yaz-usemarcon.cpp +++ b/src/yaz-usemarcon.cpp @@ -43,7 +43,11 @@ int Yaz_usemarcon::convert(const char *stage1, const char *stage2, if (stage1 && *stage1) { char *converted; +#if RULE_VERSION >= 314 size_t convlen; +#else + int convlen; +#endif if (!m_stage1) { m_stage1 = new Usemarcon(); -- 1.7.10.4