aboutsummaryrefslogtreecommitdiff
path: root/include/glib-compat.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-20 17:25:45 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-21 16:56:55 +0400
commit951cc9df88291b275f4db10e6853afd3e2a600c8 (patch)
tree0aef072be0c1c9b28502f82ab52830874a3f051d /include/glib-compat.h
parent9c125d17e9402c232c46610802e5931b3639d77b (diff)
downloadqemu-951cc9df88291b275f4db10e6853afd3e2a600c8.zip
qemu-951cc9df88291b275f4db10e6853afd3e2a600c8.tar.gz
qemu-951cc9df88291b275f4db10e6853afd3e2a600c8.tar.bz2
glib-compat: isolate g_date_time_format_iso8601 version-bypass
The solution was discussed with Markus Armbruster during the review: https://patchew.org/QEMU/20220323155743.1585078-1-marcandre.lureau@redhat.com/20220323155743.1585078-14-marcandre.lureau@redhat.com/ Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220420132624.2439741-3-marcandre.lureau@redhat.com>
Diffstat (limited to 'include/glib-compat.h')
-rw-r--r--include/glib-compat.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/glib-compat.h b/include/glib-compat.h
index dc14d3e..3113a7d 100644
--- a/include/glib-compat.h
+++ b/include/glib-compat.h
@@ -145,16 +145,6 @@ qemu_g_test_slow(void)
#define g_test_thorough() qemu_g_test_slow()
#define g_test_quick() (!qemu_g_test_slow())
-#if GLIB_CHECK_VERSION(2,62,0)
-static inline gchar *
-g_date_time_format_iso8601_compat(GDateTime *datetime)
-{
- return g_date_time_format_iso8601(datetime);
-}
-
-#define g_date_time_format_iso8601 g_date_time_format_iso8601_compat
-#endif
-
#pragma GCC diagnostic pop
#endif