[libpeas] Ensure config.h is included in every C source files.



commit 0ff19e29905aff78f76ba23cbca3c6bb47a6430c
Author: Steve Frécinaux <code istique net>
Date:   Sun Jun 27 20:23:48 2010 +0200

    Ensure config.h is included in every C source files.

 libpeas/peas-introspection.c               |    5 ++++-
 libpeas/peas-object-module.c               |    4 +++-
 libpeas/peas-plugin-loader.c               |    4 ++++
 libpeasui/peas-ui-plugin-info.c            |   25 +++++++++++++++++++++++++
 loaders/c/peas-extension-c.c               |    5 ++++-
 loaders/c/peas-plugin-loader-c.c           |    4 ++++
 loaders/python/peas-extension-python.c     |    5 ++++-
 loaders/python/peas-plugin-loader-python.c |    5 ++++-
 loaders/seed/peas-extension-seed.c         |    4 ++++
 loaders/seed/peas-plugin-loader-seed.c     |    5 ++++-
 10 files changed, 60 insertions(+), 6 deletions(-)
---
diff --git a/libpeas/peas-introspection.c b/libpeas/peas-introspection.c
index a08011b..4266e9a 100644
--- a/libpeas/peas-introspection.c
+++ b/libpeas/peas-introspection.c
@@ -19,7 +19,10 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "peas-introspection.h"
 #include <girepository.h>
 
diff --git a/libpeas/peas-object-module.c b/libpeas/peas-object-module.c
index 53cd955..b3674a2 100644
--- a/libpeas/peas-object-module.c
+++ b/libpeas/peas-object-module.c
@@ -22,7 +22,9 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <string.h>
 
diff --git a/libpeas/peas-plugin-loader.c b/libpeas/peas-plugin-loader.c
index a723222..3d080eb 100644
--- a/libpeas/peas-plugin-loader.c
+++ b/libpeas/peas-plugin-loader.c
@@ -19,6 +19,10 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "peas-plugin-loader.h"
 
 G_DEFINE_ABSTRACT_TYPE (PeasPluginLoader, peas_plugin_loader, G_TYPE_OBJECT);
diff --git a/libpeasui/peas-ui-plugin-info.c b/libpeasui/peas-ui-plugin-info.c
index bcf0050..66ce2bf 100644
--- a/libpeasui/peas-ui-plugin-info.c
+++ b/libpeasui/peas-ui-plugin-info.c
@@ -1,3 +1,28 @@
+/*
+ * peas-ui-plugin-info.c
+ * This file is part of libpeasui
+ *
+ * Copyright (C) 2009 Steve Steve Frécinaux
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Library General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <libpeas/peas-plugin-info-priv.h>
 
 #include "peas-ui-plugin-info.h"
diff --git a/loaders/c/peas-extension-c.c b/loaders/c/peas-extension-c.c
index d51666a..8f6a6a1 100644
--- a/loaders/c/peas-extension-c.c
+++ b/loaders/c/peas-extension-c.c
@@ -19,7 +19,10 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include  <girepository.h>
 #include <libpeas/peas-introspection.h>
 #include "peas-extension-c.h"
diff --git a/loaders/c/peas-plugin-loader-c.c b/loaders/c/peas-plugin-loader-c.c
index eee59d5..e6b724f 100644
--- a/loaders/c/peas-plugin-loader-c.c
+++ b/loaders/c/peas-plugin-loader-c.c
@@ -19,6 +19,10 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "peas-plugin-loader-c.h"
 #include "peas-extension-c.h"
 #include <libpeas/peas-object-module.h>
diff --git a/loaders/python/peas-extension-python.c b/loaders/python/peas-extension-python.c
index af39098..707a2d0 100644
--- a/loaders/python/peas-extension-python.c
+++ b/loaders/python/peas-extension-python.c
@@ -19,7 +19,10 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <girepository.h>
 /* _POSIX_C_SOURCE is defined in Python.h and in limits.h included by
  * girepository.h, so we unset it here to avoid a warning. Yep, that's bad. */
diff --git a/loaders/python/peas-plugin-loader-python.c b/loaders/python/peas-plugin-loader-python.c
index d68445b..7867f1c 100644
--- a/loaders/python/peas-plugin-loader-python.c
+++ b/loaders/python/peas-plugin-loader-python.c
@@ -20,6 +20,10 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "peas-extension-python.h"
 #include "peas-plugin-loader-python.h"
 
@@ -29,7 +33,6 @@
 #include <Python.h>
 #include <pygobject.h>
 #include <signal.h>
-#include "config.h"
 
 #if PY_VERSION_HEX < 0x02050000
 typedef int Py_ssize_t;
diff --git a/loaders/seed/peas-extension-seed.c b/loaders/seed/peas-extension-seed.c
index 924546b..3b624b4 100644
--- a/loaders/seed/peas-extension-seed.c
+++ b/loaders/seed/peas-extension-seed.c
@@ -19,6 +19,10 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "peas-extension-seed.h"
 #include <libpeas/peas-introspection.h>
 #include <girepository.h>
diff --git a/loaders/seed/peas-plugin-loader-seed.c b/loaders/seed/peas-plugin-loader-seed.c
index 5bd73f7..3237199 100644
--- a/loaders/seed/peas-plugin-loader-seed.c
+++ b/loaders/seed/peas-plugin-loader-seed.c
@@ -19,11 +19,14 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <seed.h>
 
 #include "peas-plugin-loader-seed.h"
 #include "peas-extension-seed.h"
-#include "config.h"
 
 G_DEFINE_DYNAMIC_TYPE (PeasPluginLoaderSeed, peas_plugin_loader_seed, PEAS_TYPE_PLUGIN_LOADER);
 



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