diff --git a/cpp/core/src/zxing/aztec/decoder/Decoder.cpp b/cpp/core/src/zxing/aztec/decoder/Decoder.cpp index 2f2b3aba9..ec30cf43d 100644 --- a/cpp/core/src/zxing/aztec/decoder/Decoder.cpp +++ b/cpp/core/src/zxing/aztec/decoder/Decoder.cpp @@ -20,7 +20,9 @@ */ #include +#ifndef NO_ICONV #include +#endif #include #include #include @@ -39,6 +41,7 @@ using std::string; namespace { void add(string& result, unsigned char character) { +#ifndef NO_ICONV char s[] = { character & 0xff }; char* ss = s; size_t sl = sizeof(s); @@ -50,6 +53,9 @@ namespace { iconv_close(ic); d[sizeof(d)-dl] = 0; result.append(d); +#else + result.push_back(character); +#endif } const int NB_BITS_COMPACT[] = {