summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2017-07-21 15:48:07 +0200
committerDebarshi Ray <debarshir@gnome.org>2017-07-21 15:48:33 +0200
commit3b8e843d841b4a7236c2a8f21c164b0d2a616400 (patch)
treec57c1c51544590b792b00bfbafa1b453e5d89c89
parent974d79347be94a541daab223f8c790ed93a3c4b8 (diff)
downloadlibgd-3b8e843d841b4a7236c2a8f21c164b0d2a616400.tar.gz
Don't include config.h
Libgd itself neither has a config.h, nor does it need one. Including config.h risks conflicting with pre-processor macros that might be defined by both libgd and the code that's using it. Eg., G_LOG_DOMAIN.
-rw-r--r--libgd/gd-types-catalog.c4
-rw-r--r--libgd/gd.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/libgd/gd-types-catalog.c b/libgd/gd-types-catalog.c
index 7bab544..75f7d57 100644
--- a/libgd/gd-types-catalog.c
+++ b/libgd/gd-types-catalog.c
@@ -17,10 +17,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
#include "gd-types-catalog.h"
#ifdef LIBGD__BOX_COMMON
diff --git a/libgd/gd.h b/libgd/gd.h
index 598fd23..69685c9 100644
--- a/libgd/gd.h
+++ b/libgd/gd.h
@@ -20,10 +20,6 @@
#ifndef __GD_H__
#define __GD_H__
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
#include <glib-object.h>
G_BEGIN_DECLS