ghc-glib/4bb428e144ef2de9390f0f2239dcc50b7fc9a259.patch
2019-10-08 13:14:47 +08:00

28 lines
1.0 KiB
Diff

From 4bb428e144ef2de9390f0f2239dcc50b7fc9a259 Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Sun, 6 Oct 2019 10:26:52 +0200
Subject: [PATCH] glib: ignore the __attribute__(A) annotation introduced in
glib-2.61.2
Fixes https://github.com/gtk2hs/gtk2hs/issues/276.
---
glib/glib.cabal | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/glib/glib.cabal b/glib/glib.cabal
index 7dca36e7..731a3068 100644
--- a/glib/glib.cabal
+++ b/glib/glib.cabal
@@ -41,9 +41,9 @@ Library
bytestring >= 0.9.1.10 && < 0.11,
text >= 1.0.0.0 && < 1.3,
containers
- cpp-options: -U__BLOCKS__
+ cpp-options: -U__BLOCKS__ -D__attribute__(A)=
if os(darwin) || os(freebsd)
- cpp-options: -D__attribute__(A)= -D_Nullable= -D_Nonnull= -D_Noreturn=
+ cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn=
if flag(closure_signals)
cpp-options: -DUSE_GCLOSURE_SIGNALS_IMPL
c-sources: System/Glib/hsgclosure.c