From: Brendan Cully Date: Tue, 1 Feb 2005 03:36:39 +0000 (+0000) Subject: Pull config.h out of protos.h, add to top of every IMAP C file. This should X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4598aeb6411245bf3378d1a2fcf97956cedc9d21;p=neomutt 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. --- diff --git a/imap/auth.c b/imap/auth.c index 0c56e851a..85fd0292d 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 252a3d012..ed74a86fe 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 3baa3c8c4..75cddc0a1 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 03f48d3ac..3d0f45fb0 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 7be391d60..71b566cad 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 a68c9d427..c01f2283c 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 4a43420ca..7eb2634ce 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 e7e704431..6581efb97 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 56848fd92..ac14c9256 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 183933f41..29770f0b5 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 743c1ba7e..a919abeb1 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 5e99f6432..395f5089b 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