Only include config.h when building Geany

config.h is not distributed, and we includ it from geany.h.  Even
though it was only included it HAVE_CONFIG_H was defined, an Autotools
based build system is likely to define it, and it becomes a problem if
that very build system uses another header name than config.h.

Closes #3384026

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5882 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Colomban Wendling 2011-08-03 15:20:26 +00:00
parent a9f4dcfbbb
commit 5bad25e2ab
8 changed files with 34 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2011-08-03 Colomban Wendling <colomban(at)geany(dot)org>
* src/geany.h, plugins/classbuilder.c, plugins/export.c,
plugins/filebrowser.c, plugins/htmlchars.c, plugins/saveactions.c,
plugins/splitwindow.c:
Only include config.h when building Geany (closes #3384026).
2011-07-31 Frank Lanitz <frlan@frank.uvena.de>
* doc/plugins.dox:
@ -5,7 +13,6 @@
HowTo as well as a hint to make usage of main_locale_init().
2011-07-28 Colomban Wendling <colomban(at)geany(dot)org>
* src/build.c, src/build.h, src/editor.c, src/interface.c,

View File

@ -25,6 +25,10 @@
/* Class Builder - creates source files containing a new class interface and definition. */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "geanyplugin.h"
GeanyData *geany_data;

View File

@ -24,6 +24,10 @@
/* Export plugin. */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <ctype.h>
#include <math.h>

View File

@ -24,6 +24,10 @@
/* Sidebar file browser plugin. */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "geanyplugin.h"
#include <string.h>

View File

@ -25,6 +25,10 @@
/* HTML Characters plugin (Inserts HTML character entities like '&amp;') */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "geanyplugin.h"
#include <string.h>
#include "SciLexer.h"

View File

@ -23,6 +23,10 @@
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "geanyplugin.h"
#include <unistd.h>

View File

@ -24,6 +24,10 @@
/* Split Window plugin. */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "geanyplugin.h"
#include <string.h>

View File

@ -27,8 +27,8 @@
#ifndef GEANY_H
#define GEANY_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#if defined(HAVE_CONFIG_H) && defined(GEANY_PRIVATE)
# include "config.h"
#endif
#include <gtk/gtk.h>