[libgd/gnome-photos-3-24: 3/7] Don't include config.h



commit 89350ddc6a08a43d0804a6fe41bc545065a2daa8
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jul 21 15:48:07 2017 +0200

    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.

 libgd/gd-types-catalog.c |    4 ----
 libgd/gd.h               |    4 ----
 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 850917a..9c8e3d5 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]