diff -ur djview4-4.9/src/qdjview.cpp b/src/qdjview.cpp --- djview4-4.9/src/qdjview.cpp 2012-04-09 20:56:55.000000000 -0700 +++ b/src/qdjview.cpp 2017-11-08 10:34:33.671327783 -0800 @@ -4643,13 +4643,21 @@ static QString miniexp_to_string(miniexp_t expr, int width=40, bool octal=false) { +#if DDJVUAPI_VERSION > 21 + static int one = miniexp_io_print7bits; +#else static int one = 1; +#endif QByteArray buffer; miniexp_io_t io; miniexp_io_init(&io); io.fputs = qstring_puts; io.data[1] = (void*)&buffer; +#if DDJVUAPI_VERSION >21 + io.p_flags = (octal ? &one : 0); +#else io.p_print7bits = (octal ? &one : 0); +#endif miniexp_pprint_r(&io, expr, width); return QString::fromUtf8(buffer.data()); }