tests: Add G_PID_FORMAT to glib compat header

G_PID_FORMAT was only added in glib 2.50.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
Christophe Fergeau
2018-07-08 16:24:35 +01:00
committed by Frediano Ziglio
parent dcc3f995d9
commit 014e4d7263
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@
#include <spice/macros.h>
#include "test-display-base.h"
#include "test-glib-compat.h"
#include <common/log.h>
static SpiceCoreInterface *core;
+9
View File
@@ -68,4 +68,13 @@ g_test_assert_expected_messages_internal_no_warnings(const char *domain,
#define g_assert_false(cond) g_assert(!(cond))
#endif
/* Added in glib 2.50 */
#ifndef G_PID_FORMAT
#ifdef G_OS_WIN32
#define G_PID_FORMAT "i"
#else
#define G_PID_FORMAT "p"
#endif /* G_OS_WIN32 */
#endif /* G_PID_FORMAT */
#endif // TEST_GLIB_COMPAT_H_