]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Buildsystem: Squash "no previous declaration for 'svgtiny_color_lookup'"
authorMichael Drake <michael.drake@codethink.co.uk>
Thu, 20 Apr 2017 10:39:32 +0000 (11:39 +0100)
committerMichael Drake <michael.drake@codethink.co.uk>
Thu, 20 Apr 2017 10:39:32 +0000 (11:39 +0100)
src/Makefile

index fb8a72f9c2ffe5a281b79b2306167a220c4bdd7c..ff4eaf4a721c05004452b7124b75f29467b5e5c2 100644 (file)
@@ -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