From a8b8e916e8359cb1d246d5fb53cb0febab56aa07 Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Tue, 1 Feb 2005 03:36:39 +0000 Subject: [PATCH] Pull config.h out of protos.h, add to top of every IMAP C file. This should probably be done to every C file, but the results need testing in case some files depend on the current (broken) includes. --- imap/auth.c | 4 ++++ imap/auth_anon.c | 4 ++++ imap/auth_cram.c | 4 ++++ imap/auth_gss.c | 5 +++-- imap/auth_login.c | 4 ++++ imap/auth_sasl.c | 4 ++++ imap/browse.c | 4 ++++ imap/command.c | 4 ++++ imap/imap.c | 4 ++++ imap/message.c | 4 ++++ imap/utf7.c | 4 ++++ protos.h | 4 ---- 12 files changed, 43 insertions(+), 6 deletions(-) diff --git a/imap/auth.c b/imap/auth.c index 0c56e851..85fd0292 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -20,6 +20,10 @@ /* IMAP login/authentication code */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "imap_private.h" #include "auth.h" diff --git a/imap/auth_anon.c b/imap/auth_anon.c index 252a3d01..ed74a86f 100644 --- a/imap/auth_anon.c +++ b/imap/auth_anon.c @@ -18,6 +18,10 @@ /* IMAP login/authentication code */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "imap_private.h" #include "auth.h" diff --git a/imap/auth_cram.c b/imap/auth_cram.c index 3baa3c8c..75cddc0a 100644 --- a/imap/auth_cram.c +++ b/imap/auth_cram.c @@ -18,6 +18,10 @@ /* IMAP login/authentication code */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "imap_private.h" #include "auth.h" diff --git a/imap/auth_gss.c b/imap/auth_gss.c index 03f48d3a..3d0f45fb 100644 --- a/imap/auth_gss.c +++ b/imap/auth_gss.c @@ -18,8 +18,9 @@ /* GSS login/authentication code */ -/* for HAVE_HEIMDAL */ -#include "config.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include "mutt.h" #include "imap_private.h" diff --git a/imap/auth_login.c b/imap/auth_login.c index 7be391d6..71b566ca 100644 --- a/imap/auth_login.c +++ b/imap/auth_login.c @@ -18,6 +18,10 @@ /* plain LOGIN support */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "imap_private.h" #include "auth.h" diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c index a68c9d42..c01f2283 100644 --- a/imap/auth_sasl.c +++ b/imap/auth_sasl.c @@ -18,6 +18,10 @@ /* SASL login/authentication code */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mutt_sasl.h" #include "imap_private.h" diff --git a/imap/browse.c b/imap/browse.c index 4a43420c..7eb2634c 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -19,6 +19,10 @@ /* Mutt browser support routines */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include diff --git a/imap/command.c b/imap/command.c index e7e70443..6581efb9 100644 --- a/imap/command.c +++ b/imap/command.c @@ -21,6 +21,10 @@ /* command.c: routines for sending commands to an IMAP server and parsing * responses */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "imap_private.h" #include "message.h" diff --git a/imap/imap.c b/imap/imap.c index 56848fd9..ac14c925 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -20,6 +20,10 @@ /* Support for IMAP4rev1, with the occasional nod to IMAP 4. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mutt_curses.h" #include "mx.h" diff --git a/imap/message.c b/imap/message.c index 183933f4..29770f0b 100644 --- a/imap/message.c +++ b/imap/message.c @@ -19,6 +19,10 @@ /* message parsing/updating functions */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include diff --git a/imap/utf7.c b/imap/utf7.c index 743c1ba7..a919abeb 100644 --- a/imap/utf7.c +++ b/imap/utf7.c @@ -16,6 +16,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "charset.h" #include "imap_private.h" diff --git a/protos.h b/protos.h index 5e99f643..395f5089 100644 --- a/protos.h +++ b/protos.h @@ -17,10 +17,6 @@ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #ifdef HAVE_INTTYPES_H # include #endif -- 2.40.0