summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-20 11:39:32 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-04-20 11:39:32 +0100
commit8d7ead2dea72c1b60dab316da7069467c62ea95d (patch)
treef7ef42c4dc310329cdfe776dc03f71e090394bc3
parent4390f1c84e8fee51fc22468821e6fc158e783053 (diff)
downloadlibsvgtiny-8d7ead2dea72c1b60dab316da7069467c62ea95d.tar.gz
libsvgtiny-8d7ead2dea72c1b60dab316da7069467c62ea95d.tar.bz2
Buildsystem: Squash "no previous declaration for 'svgtiny_color_lookup'"
-rw-r--r--src/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index fb8a72f..ff4eaf4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,6 +6,8 @@ SOURCES := $(SOURCES)
$(DIR)autogenerated_colors.c: src/colors.gperf
$(VQ)$(ECHO) " GPERF: $<"
$(Q)gperf --output-file=$@ $<
+# Squash "error: no previous declaration for 'svgtiny_color_lookup'"
+ $(Q)$(SED) -i 's/^\(const struct svgtiny_named_color\)/static \1/' $@
PRE_TARGETS := $(DIR)autogenerated_colors.c