kumquat-buildroot/package/libsvgtiny/0003-Hopefully-silence-warnings-about-inlines-and-non-inlines-calling-one.patch
Fabrice Fontaine 400434dc3d package/libsvgtiny: fix build with latest gperf
Remove second patch and retrieve two upstream patches to fix build with
latest gperf

Fixes:
 - http://autobuild.buildroot.org/results/51be63089209d38c2cf29b0e0b08f73a0e15c467

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-10-15 09:18:08 +02:00

37 lines
1.0 KiB
Diff

From 21b4836ac9d6c6725590a925daa5d17eda9843e9 Mon Sep 17 00:00:00 2001
From: Daniel Silverstone <dsilvers@digital-scurf.org>
Date: Sat, 26 Apr 2014 16:24:54 +0100
Subject: Hopefully silence warnings about inlines and non inlines calling one
another.
[Retrieved from:
https://source.netsurf-browser.org/libsvgtiny.git/commit/src?id=21b4836ac9d6c6725590a925daa5d17eda9843e9]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
src/colors.gperf | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/colors.gperf b/src/colors.gperf
index 89152d2..96d5b9e 100644
--- a/src/colors.gperf
+++ b/src/colors.gperf
@@ -16,6 +16,15 @@
#include <string.h>
#include "svgtiny.h"
#include "svgtiny_internal.h"
+
+/* This unusual define shennanigan is to try and prevent the gperf
+ * generated function from being inlined. This is pointless given
+ * it (a) is in a separate .c file and (b) has external linkage.
+ */
+#ifdef __inline
+#undef __inline
+#define __inline
+#endif
%}
struct svgtiny_named_color;
--
cgit v1.2.1