qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 3/3] Remove glib < 2.26 compatibility code


From: marcandre . lureau
Subject: [Qemu-devel] [PATCH 3/3] Remove glib < 2.26 compatibility code
Date: Mon, 12 Oct 2015 12:54:59 +0200

From: Marc-André Lureau <address@hidden>

Since 2.26 is now the minimum.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 include/glib-compat.h   | 4 ----
 tests/vhost-user-test.c | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/include/glib-compat.h b/include/glib-compat.h
index 318e000..46a2bc5 100644
--- a/include/glib-compat.h
+++ b/include/glib-compat.h
@@ -19,10 +19,6 @@
 #include <glib.h>
 
 /* GLIB version compatibility flags */
-#if !GLIB_CHECK_VERSION(2, 26, 0)
-#define G_TIME_SPAN_SECOND              (G_GINT64_CONSTANT(1000000))
-#endif
-
 #if !GLIB_CHECK_VERSION(2, 28, 0)
 static inline gint64 qemu_g_get_monotonic_time(void)
 {
diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c
index 56df5cc..9f2254d 100644
--- a/tests/vhost-user-test.c
+++ b/tests/vhost-user-test.c
@@ -21,10 +21,6 @@
 #include <qemu/sockets.h>
 
 /* GLIB version compatibility flags */
-#if !GLIB_CHECK_VERSION(2, 26, 0)
-#define G_TIME_SPAN_SECOND              (G_GINT64_CONSTANT(1000000))
-#endif
-
 #if GLIB_CHECK_VERSION(2, 28, 0)
 #define HAVE_MONOTONIC_TIME
 #endif
-- 
2.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]