X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e99762c031bf2c71af7f856c1d713bce0422acaa..6433f6d3165a3f8633f42c59694a9104a7b37a93:/src/os2/fontutil.cpp?ds=inline diff --git a/src/os2/fontutil.cpp b/src/os2/fontutil.cpp index 39c0d8548d..fe12e11839 100644 --- a/src/os2/fontutil.cpp +++ b/src/os2/fontutil.cpp @@ -29,6 +29,7 @@ #include "wx/wxprec.h" #ifndef WX_PRECOMP + #include "wx/app.h" #include "wx/string.h" #include "wx/log.h" #include "wx/intl.h" @@ -331,9 +332,9 @@ void wxFillLogFont( ,&vInfo )) { - if ( !wxTheFontMapper->GetAltForEncoding( vEncoding - ,&vInfo - )) +#if wxUSE_FONTMAP + if (!wxTheFontMapper->GetAltForEncoding(vEncoding, &vInfo)) +#endif // wxUSE_FONTMAP { // // Unsupported encoding, replace with the default