--- src/libwrapper.cpp.orig +++ src/libwrapper.cpp @@ -24,6 +24,7 @@ #include #include +#include #include "utils.hpp" @@ -117,7 +118,6 @@ switch (*p++) { case 'm': case 'l': //need more work... - case 'g': sec_size = strlen(p); if (sec_size) { res+="\n"; @@ -127,6 +127,7 @@ } sec_size++; break; + case 'g': case 'x': sec_size = strlen(p); if (sec_size) { @@ -208,6 +209,15 @@ void Library::LookupData(const string &str, TSearchResultList& res_list) { +#if defined(_LIBCPP_VERSION) + std::vector > drl(ndicts()); + if (!Libs::LookupData(str.c_str(), &drl[0])) + return; + for (int idict=0; idict drl[ndicts()]; if (!Libs::LookupData(str.c_str(), drl)) return; @@ -215,6 +225,7 @@ for (std::vector::size_type j=0; j