From: Daniel Silverstone Date: Sat, 26 Apr 2014 15:24:54 +0000 (+0100) Subject: Hopefully silence warnings about inlines and non inlines calling one X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=21b4836ac9d6c6725590a925daa5d17eda9843e9;p=libsvgtiny.git Hopefully silence warnings about inlines and non inlines calling one another. --- 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 #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;