From 54269b911745f6976cafca0babe89d0b73c568e4 Mon Sep 17 00:00:00 2001
From: Axel Simon <Axel.Simon@in.tum.de>
Date: Thu, 15 May 2014 09:47:24 +0200
Subject: [PATCH] make c2hs parse assignments in __attribute__ declarations
 since Apple thinks its ok

---
 tools/c2hs/c/CParser.y | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tools/c2hs/c/CParser.y b/tools/c2hs/c/CParser.y
index 3f83c32..2979cd2 100644
--- a/tools/c2hs/c/CParser.y
+++ b/tools/c2hs/c/CParser.y
@@ -1814,9 +1814,13 @@ attribute
 
 attribute_params :: { () }
 attribute_params
-  : constant_expression					{ () }
-  | attribute_params ',' constant_expression		{ () }
+  : attribute_param					{ () }
+  | attribute_params ',' attribute_param		{ () }
 
+attribute_param :: { () }
+attribute_param
+  : constant_expression					{ () }
+  | ident '=' cfloat					{ () }
 
 {
 
-- 
1.8.3.4 (Apple Git-47)

