From: Marc-André Lureau Date: Wed, 9 Aug 2017 17:46:09 +0000 (+0200) Subject: glib-compat: move G_SOURCE_CONTINUE/REMOVE there X-Git-Tag: v2.11.0-rc0~58^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=660db84d9b42c28927a095d23ecf8796ac47e801;p=thirdparty%2Fqemu.git glib-compat: move G_SOURCE_CONTINUE/REMOVE there Signed-off-by: Marc-André Lureau Acked-by: Philippe Mathieu-Daudé --- diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c index b5ae02c96f0..78bcc65f5a1 100644 --- a/contrib/vhost-user-scsi/vhost-user-scsi.c +++ b/contrib/vhost-user-scsi/vhost-user-scsi.c @@ -17,14 +17,6 @@ #include -/* 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 **/ diff --git a/include/glib-compat.h b/include/glib-compat.h index e15aca2d403..c49cf87196f 100644 --- a/include/glib-compat.h +++ b/include/glib-compat.h @@ -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