nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 55381aa614d8188261d94a28ad7b7f31a051cb82
parent f6159047bcf31c5883f2dfc84068240f9e5a51da
Author: Jordi Mallach <jordi@gnu.org>
Date:   Wed, 17 Nov 2004 23:17:05 +0000

Include <config.h> only if HAVE_CONFIG_H.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2107 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 1+
Msrc/color.c | 4+++-
Msrc/cut.c | 4+++-
Msrc/files.c | 4+++-
Msrc/global.c | 4+++-
Msrc/move.c | 4+++-
Msrc/nano.c | 4+++-
Msrc/rcfile.c | 4+++-
Msrc/search.c | 4+++-
Msrc/utils.c | 4+++-
Msrc/winio.c | 4+++-
11 files changed, 31 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -113,6 +113,7 @@ CVS code - Change the openfilestruct structure accordingly in order to handle this. (DLR) - Convert some ints with predefined boundaries to enums. (DLR) + - Include config.h only if HAVE_CONFIG_H. (Jordi) - cut.c: cut_marked_segment() - Respect concatenate_cut, as we need to use it if we do a diff --git a/src/color.c b/src/color.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <string.h> diff --git a/src/cut.c b/src/cut.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <string.h> diff --git a/src/files.c b/src/files.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <string.h> diff --git a/src/global.c b/src/global.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <assert.h> diff --git a/src/move.c b/src/move.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <string.h> diff --git a/src/nano.c b/src/nano.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdio.h> #include <stdlib.h> diff --git a/src/rcfile.c b/src/rcfile.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <stdarg.h> diff --git a/src/search.c b/src/search.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <string.h> diff --git a/src/utils.c b/src/utils.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdlib.h> #include <string.h> diff --git a/src/winio.c b/src/winio.c @@ -19,7 +19,9 @@ * * **************************************************************************/ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdarg.h> #include <string.h>