From 85d9fb8e6c482d7b6d59efbf98040ad58d3f5008 Mon Sep 17 00:00:00 2001 From: William Roy Date: Sat, 17 Dec 2022 23:23:58 +0000 Subject: [PATCH] Fix g_array_append_val compilation on Windows --- glib/garray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/garray.h b/glib/garray.h index 5b9c6752a..1c55e4a1d 100644 --- a/glib/garray.h +++ b/glib/garray.h @@ -64,7 +64,7 @@ struct _GPtrArray * order by moving the last element to the position of the removed. */ -#if defined (glib_typeof) && GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76 +#if defined (glib_typeof) && GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76 && defined (__GNUC__) #define g_array_append_val(a, v) \ (G_GNUC_EXTENSION ({ \ glib_typeof ((v)) gaa_val_ = (v); \