From: Matthew Fernandez Date: Sat, 2 Oct 2021 03:13:41 +0000 (-0700) Subject: plugin core: swap duplicated prototypes for missing includes X-Git-Tag: 2.49.2~19^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=207423bf3f8652caf7a06898d12535d075cb3dc9;p=graphviz plugin core: swap duplicated prototypes for missing includes This file is calling functions `xml_string` `xml_url_string` without including the header that prototypes them, utils.h. There seems to be no reason to avoid this and locally re-prototype these functions. Related to #1868. --- diff --git a/plugin/core/gvrender_core_map.c b/plugin/core/gvrender_core_map.c index ba9079e1d..8d9fe6101 100644 --- a/plugin/core/gvrender_core_map.c +++ b/plugin/core/gvrender_core_map.c @@ -12,13 +12,12 @@ #include +#include +#include #include #include #include -extern char *xml_string(char *str); -extern char *xml_url_string(char *str); - typedef enum { FORMAT_IMAP, FORMAT_ISMAP, FORMAT_CMAP, FORMAT_CMAPX, } format_type; static void map_output_shape (GVJ_t *job, map_shape_t map_shape, pointf * AF, int nump,