]> gitweb.michael.orlitzky.com - libsvgtiny.git/blobdiff - src/colors.gperf
Hopefully silence warnings about inlines and non inlines calling one
[libsvgtiny.git] / src / colors.gperf
index 89152d246dcb3e9db801683d99b065c6b7484b96..96d5b9e5debf7b21d53f9bbf4031228c038e3f4f 100644 (file)
 #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;