1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-aq,v 1.1 2000/05/07 13:36:49 wulf Exp $
--- src/rrd_tool.h.orig Sun May 7 09:44:02 2000
+++ src/rrd_tool.h Sun May 7 09:48:27 2000
@@ -10,6 +10,10 @@
extern "C" {
#endif
+/*
+ * gd.h needs to be called before math.h to avoid -Wshadow warnings
+ */
+#include <gd.h>
#ifndef _RRD_TOOL_H
#define _RRD_TOOL_H
@@ -142,7 +146,7 @@
int GifSize(FILE *, long *, long *);
int PngSize(FILE *, long *, long *);
int PngSize(FILE *, long *, long *);
-#include <gd.h>
+
void gdImagePng(gdImagePtr im, FILE *out);
int rrd_create_fn(char *file_name, rrd_t *rrd);
int rrd_fetch_fn(char *filename, enum cf_en cf_idx,
|