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