]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
glib-compat: move G_SOURCE_CONTINUE/REMOVE there
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 9 Aug 2017 17:46:09 +0000 (19:46 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 10 Oct 2017 14:33:55 +0000 (16:33 +0200)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
contrib/vhost-user-scsi/vhost-user-scsi.c
include/glib-compat.h

index b5ae02c96f070dcd77ed3f54673003872bd23dcb..78bcc65f5a1d1738e61151fabe8c1394b04211b1 100644 (file)
 
 #include <glib.h>
 
-/* Small compat shim from glib 2.32 */
-#ifndef G_SOURCE_CONTINUE
-#define G_SOURCE_CONTINUE TRUE
-#endif
-#ifndef G_SOURCE_REMOVE
-#define G_SOURCE_REMOVE FALSE
-#endif
-
 /* #define VUS_DEBUG 1 */
 
 /** Log helpers **/
index e15aca2d403db1f83e77a36d2d9de1a99df70f5c..c49cf87196f9376cd0ff032fd4cb347113894cbf 100644 (file)
@@ -356,5 +356,12 @@ g_test_add_data_func_full(const char *path,
 }
 #endif
 
+/* Small compat shim from glib 2.32 */
+#ifndef G_SOURCE_CONTINUE
+#define G_SOURCE_CONTINUE TRUE
+#endif
+#ifndef G_SOURCE_REMOVE
+#define G_SOURCE_REMOVE FALSE
+#endif
 
 #endif