1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Michael R. Crusoe <crusoe@debian.org>
Subject: Add missing include and function definition
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066345
Debian now builds with "-Werror=implicit-function-declaration", which caught
these bugs.
--- libgdchart-gd2.orig/gdc.c
+++ libgdchart-gd2/gdc.c
@@ -4,6 +4,7 @@
#define GDC_INCL
#define GDC_LIB
#include <math.h>
+#include <string.h>
#include "gdc.h"
struct GDC_FONT_T GDC_fontc[GDC_numfonts] = { (gdFontPtr)NULL, 8, 5,
--- libgdchart-gd2.orig/gdc.h
+++ libgdchart-gd2/gdc.h
@@ -121,6 +121,7 @@
} GDCfnt_sz( char* str, enum GDC_font_size gdfontsz, char* ttfont, double ttfptsz, double angle, char **status );
int GDCImageStringNL( gdImagePtr, struct GDC_FONT_T*, char*, double, double, int, int, char*, int, GDC_justify_t, char** );
+long get_uniq_color( gdImagePtr im );
void load_font_conversions();
short cnt_nl( char*, int* );
#endif
|