mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-26 11:13:36 +00:00
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:
committed by
Frediano Ziglio
parent
dcc3f995d9
commit
014e4d7263
@@ -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;
|
||||
|
||||
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user