diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2014-04-26 16:24:54 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2014-04-26 16:26:36 +0100 |
commit | 21b4836ac9d6c6725590a925daa5d17eda9843e9 (patch) | |
tree | 6a07c2d5339bf1ac50a01e83fc77f8f3389d9bc6 /src | |
parent | 7ef85fcc24ca9220427d0276a7b60ed8ba40ff95 (diff) | |
download | libsvgtiny-21b4836ac9d6c6725590a925daa5d17eda9843e9.tar.gz libsvgtiny-21b4836ac9d6c6725590a925daa5d17eda9843e9.tar.bz2 |
Hopefully silence warnings about inlines and non inlines calling one
another.
Diffstat (limited to 'src')
-rw-r--r-- | src/colors.gperf | 9 |
1 files changed, 9 insertions, 0 deletions
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; |