fix build with old pango versions which don't define PANGO_VERSION_CHECK(), closes #16660
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -290,6 +290,7 @@ PangoContext* wxGetPangoContext()
|
||||
{
|
||||
context = gdk_pango_context_get_for_screen(screen);
|
||||
}
|
||||
#ifdef PANGO_VERSION_CHECK
|
||||
#if PANGO_VERSION_CHECK(1,22,0)
|
||||
else // No default screen.
|
||||
{
|
||||
@@ -304,6 +305,7 @@ PangoContext* wxGetPangoContext()
|
||||
//else: pango_font_map_create_context() not available
|
||||
}
|
||||
#endif // Pango 1.22+
|
||||
#endif // PANGO_VERSION_CHECK
|
||||
}
|
||||
|
||||
return context;
|
||||
|
Reference in New Issue
Block a user