-#ifdef PANGO_VERSION_MAJOR
- // in Pango >= 1.16 the "underline of leading/trailing spaces" bug has been fixed...
- static bool pangoOk = (pango_version_check(1, 16, 1) == NULL);
-#else
- // the version of Pango used for compiling wxWidgets does not have version macros/functions...
- // we are forced to assume that the run-time version of Pango is older than 1.16
- const bool pangoOk = false;
-#endif
+ // in Pango >= 1.16 the "underline of leading/trailing spaces" bug
+ // has been fixed and thus the hack implemented below should never be used
+ static bool pangoOk = !wx_pango_version_check(1, 16, 0);