summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2022-12-17 23:23:58 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2022-12-17 23:23:58 +0000
commit3ec55201d052cc832023bc846459721c3a583f8b (patch)
treea3558ddc71064f7707904141d64e54ca995a23b9
parentabd76e02864163b6a627e5c5722cb4d6a8d35501 (diff)
parent85d9fb8e6c482d7b6d59efbf98040ad58d3f5008 (diff)
downloadglib-3ec55201d052cc832023bc846459721c3a583f8b.tar.gz
Merge branch 'wroy-main-patch-88172' into 'main'
Fix g_array_append_val compilation on Windows Closes #2845 See merge request GNOME/glib!3150
-rw-r--r--glib/garray.h2
1 files changed, 1 insertions, 1 deletions
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); \