Fix building on Pango 1.49.4 (flutter/engine#45098)

This version added the autoptr macros which we no longer need to define.

https://github.com/flutter/flutter/issues/132881
This commit is contained in:
Robert Ancell
2023-09-05 08:03:28 +12:00
committed by GitHub
parent ef57308f58
commit e0006ade23

View File

@@ -7,7 +7,11 @@
#include "flutter/shell/platform/linux/public/flutter_linux/fl_value.h"
G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoContext, g_object_unref)
// PangoLayout g_autoptr macro weren't added until 1.49.4. Add them manually.
// https://gitlab.gnome.org/GNOME/pango/-/commit/0b84e14
#if !PANGO_VERSION_CHECK(1, 49, 4)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoLayout, g_object_unref)
#endif
typedef bool (*FlTextBoundaryCallback)(const PangoLogAttr* attr);