balsa r8113 - in trunk: . libbalsa libinit_balsa src



Author: PeterB
Date: Thu Apr  2 23:01:01 2009
New Revision: 8113
URL: http://svn.gnome.org/viewvc/balsa?rev=8113&view=rev

Log:
make sure that config.h is included before any header that refers to a symbol defined there

Modified:
   trunk/ChangeLog
   trunk/libbalsa/address-book-gpe.h
   trunk/libbalsa/body.h
   trunk/libbalsa/filter-private.h
   trunk/libbalsa/gmime-stream-gio.h
   trunk/libbalsa/gmime-stream-gnome-vfs.h
   trunk/libbalsa/html.h
   trunk/libbalsa/identity.h
   trunk/libbalsa/libbalsa-conf.c
   trunk/libbalsa/libbalsa.h
   trunk/libbalsa/libbalsa_private.h
   trunk/libbalsa/mailbox.h
   trunk/libbalsa/message.h
   trunk/libbalsa/mime-stream-shared.h
   trunk/libbalsa/misc.h
   trunk/libbalsa/missing.h
   trunk/libbalsa/rfc3156.h
   trunk/libbalsa/send.h
   trunk/libbalsa/server.h
   trunk/libinit_balsa/Makefile.am
   trunk/libinit_balsa/assistant_init.c
   trunk/libinit_balsa/assistant_page_defclient.c
   trunk/libinit_balsa/assistant_page_defclient.h
   trunk/src/balsa-app.h
   trunk/src/balsa-bonobo.h
   trunk/src/balsa-icons.h
   trunk/src/balsa-message.h
   trunk/src/balsa-mime-widget-crypto.h
   trunk/src/balsa-print-object-header.h
   trunk/src/main-window.h
   trunk/src/print.h
   trunk/src/quote-color.h
   trunk/src/save-restore.h
   trunk/src/sendmsg-window.h

Modified: trunk/libbalsa/address-book-gpe.h
==============================================================================
--- trunk/libbalsa/address-book-gpe.h	(original)
+++ trunk/libbalsa/address-book-gpe.h	Thu Apr  2 23:01:01 2009
@@ -27,6 +27,10 @@
 #ifndef __LIBBALSA_ADDRESS_BOOK_GPE_H__
 #define __LIBBALSA_ADDRESS_BOOK_GPE_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef HAVE_SQLITE
 
 #ifdef HAVE_SQLITE3

Modified: trunk/libbalsa/body.h
==============================================================================
--- trunk/libbalsa/body.h	(original)
+++ trunk/libbalsa/body.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_BODY_H__
 #define __LIBBALSA_BODY_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include <stdio.h>
 #include <sys/stat.h>
 

Modified: trunk/libbalsa/filter-private.h
==============================================================================
--- trunk/libbalsa/filter-private.h	(original)
+++ trunk/libbalsa/filter-private.h	Thu Apr  2 23:01:01 2009
@@ -28,6 +28,10 @@
 #ifndef __FILTER_PRIVATE_H__
 #define __FILTER_PRIVATE_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #if !USE_GREGEX
 #  ifdef HAVE_PCRE
 #    include <pcreposix.h>

Modified: trunk/libbalsa/gmime-stream-gio.h
==============================================================================
--- trunk/libbalsa/gmime-stream-gio.h	(original)
+++ trunk/libbalsa/gmime-stream-gio.h	Thu Apr  2 23:01:01 2009
@@ -24,6 +24,10 @@
 #ifndef __GMIME_STREAM_GIO_H__
 #define __GMIME_STREAM_GIO_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 /* note: this module will be compiled only if GIO is available */
 #if HAVE_GIO
 

Modified: trunk/libbalsa/gmime-stream-gnome-vfs.h
==============================================================================
--- trunk/libbalsa/gmime-stream-gnome-vfs.h	(original)
+++ trunk/libbalsa/gmime-stream-gnome-vfs.h	Thu Apr  2 23:01:01 2009
@@ -24,6 +24,10 @@
 #ifndef __GMIME_STREAM_GVFS_H__
 #define __GMIME_STREAM_GVFS_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 /* note: this module will be compiled only if Gnome-Vfs is available */
 #ifdef HAVE_GNOME_VFS
 

Modified: trunk/libbalsa/html.h
==============================================================================
--- trunk/libbalsa/html.h	(original)
+++ trunk/libbalsa/html.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef   __LIBBALSA_HTML_H__
 # define  __LIBBALSA_HTML_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 # if defined(HAVE_GTKHTML2)
 /* gtkhtml2 uses deprecated api */
 #  undef GTK_DISABLE_DEPRECATED

Modified: trunk/libbalsa/identity.h
==============================================================================
--- trunk/libbalsa/identity.h	(original)
+++ trunk/libbalsa/identity.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_IDENTITY_H__
 #define __LIBBALSA_IDENTITY_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include <gtk/gtk.h>
 #include <gmime/internet-address.h>
 

Modified: trunk/libbalsa/libbalsa-conf.c
==============================================================================
--- trunk/libbalsa/libbalsa-conf.c	(original)
+++ trunk/libbalsa/libbalsa-conf.c	Thu Apr  2 23:01:01 2009
@@ -20,9 +20,13 @@
  * 02111-1307, USA.
  */
 
-#include <string.h>
+#if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H
+# include "config.h"
+#endif                          /* HAVE_CONFIG_H */
 #include "libbalsa-conf.h"
 
+#include <string.h>
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>

Modified: trunk/libbalsa/libbalsa.h
==============================================================================
--- trunk/libbalsa/libbalsa.h	(original)
+++ trunk/libbalsa/libbalsa.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_H__
 #define __LIBBALSA_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 typedef struct _LibBalsaCondition LibBalsaCondition;
 typedef struct _LibBalsaIdentity LibBalsaIdentity;
 typedef struct _LibBalsaMailbox LibBalsaMailbox;

Modified: trunk/libbalsa/libbalsa_private.h
==============================================================================
--- trunk/libbalsa/libbalsa_private.h	(original)
+++ trunk/libbalsa/libbalsa_private.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_PRIVATE_H__
 #define __LIBBALSA_PRIVATE_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include <unistd.h>
 
 /* LibBalsaMailboxEntry handling code which is to be used for message

Modified: trunk/libbalsa/mailbox.h
==============================================================================
--- trunk/libbalsa/mailbox.h	(original)
+++ trunk/libbalsa/mailbox.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_MAILBOX_H__
 #define __LIBBALSA_MAILBOX_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include <gdk/gdk.h>
 #include <gmime/gmime.h>
 

Modified: trunk/libbalsa/message.h
==============================================================================
--- trunk/libbalsa/message.h	(original)
+++ trunk/libbalsa/message.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __LIBBALSA_MESSAGE_H__
 #define __LIBBALSA_MESSAGE_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include <glib.h>
 
 #include <stdio.h>

Modified: trunk/libbalsa/mime-stream-shared.h
==============================================================================
--- trunk/libbalsa/mime-stream-shared.h	(original)
+++ trunk/libbalsa/mime-stream-shared.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_MIME_STREAM_SHARED_H__
 #define __LIBBALSA_MIME_STREAM_SHARED_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #if BALSA_USE_THREADS
 
 #include <gmime/gmime-stream-fs.h>

Modified: trunk/libbalsa/misc.h
==============================================================================
--- trunk/libbalsa/misc.h	(original)
+++ trunk/libbalsa/misc.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_MISC_H__
 #define __LIBBALSA_MISC_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include <stdio.h>
 #include <gtk/gtk.h>
 #include <gmime/gmime.h>

Modified: trunk/libbalsa/missing.h
==============================================================================
--- trunk/libbalsa/missing.h	(original)
+++ trunk/libbalsa/missing.h	Thu Apr  2 23:01:01 2009
@@ -25,6 +25,10 @@
 
 #include <time.h>
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #if (HAVE_DECL_CTIME_R == 0)
 char * ctime_r(const time_t *clock, char *buf);
 #endif

Modified: trunk/libbalsa/rfc3156.h
==============================================================================
--- trunk/libbalsa/rfc3156.h	(original)
+++ trunk/libbalsa/rfc3156.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __RFC3156_H__
 #define __RFC3156_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef HAVE_GPGME
 
 #include <gpgme.h>

Modified: trunk/libbalsa/send.h
==============================================================================
--- trunk/libbalsa/send.h	(original)
+++ trunk/libbalsa/send.h	Thu Apr  2 23:01:01 2009
@@ -24,6 +24,10 @@
 #ifndef __SEND_H__
 #define __SEND_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include "libbalsa.h"
 
 typedef LibBalsaMailbox* (*LibBalsaFccboxFinder)(const gchar *url);

Modified: trunk/libbalsa/server.h
==============================================================================
--- trunk/libbalsa/server.h	(original)
+++ trunk/libbalsa/server.h	Thu Apr  2 23:01:01 2009
@@ -23,6 +23,10 @@
 #ifndef __LIBBALSA_SERVER_H__
 #define __LIBBALSA_SERVER_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include "imap/libimap.h"
 #include "libbalsa.h"
 

Modified: trunk/libinit_balsa/Makefile.am
==============================================================================
--- trunk/libinit_balsa/Makefile.am	(original)
+++ trunk/libinit_balsa/Makefile.am	Thu Apr  2 23:01:01 2009
@@ -72,4 +72,4 @@
 	-I$(top_srcdir)/src \
         $(BALSA_CFLAGS)
 
-DEFS = $(BALSA_DEFS)
+AM_CFLAGS = $(BALSA_DEFS)

Modified: trunk/libinit_balsa/assistant_init.c
==============================================================================
--- trunk/libinit_balsa/assistant_init.c	(original)
+++ trunk/libinit_balsa/assistant_init.c	Thu Apr  2 23:01:01 2009
@@ -19,6 +19,9 @@
  * 02111-1307, USA.
  */
 
+#if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H
+# include "config.h"
+#endif                          /* HAVE_CONFIG_H */
 #include "assistant_init.h"
 
 #include <stdlib.h>

Modified: trunk/libinit_balsa/assistant_page_defclient.c
==============================================================================
--- trunk/libinit_balsa/assistant_page_defclient.c	(original)
+++ trunk/libinit_balsa/assistant_page_defclient.c	Thu Apr  2 23:01:01 2009
@@ -19,6 +19,9 @@
  * 02111-1307, USA.
  */
 
+#if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H
+# include "config.h"
+#endif                          /* HAVE_CONFIG_H */
 #include "assistant_page_defclient.h"
 
 #if HAVE_GNOME

Modified: trunk/libinit_balsa/assistant_page_defclient.h
==============================================================================
--- trunk/libinit_balsa/assistant_page_defclient.h	(original)
+++ trunk/libinit_balsa/assistant_page_defclient.h	Thu Apr  2 23:01:01 2009
@@ -24,6 +24,10 @@
 #ifndef __BALSA_DRUID_PAGE_DEFCLIENT_H__
 #define __BALSA_DRUID_PAGE_DEFCLIENT_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif                          /* __cplusplus */

Modified: trunk/src/balsa-app.h
==============================================================================
--- trunk/src/balsa-app.h	(original)
+++ trunk/src/balsa-app.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __BALSA_APP_H__
 #define __BALSA_APP_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include "libbalsa.h"
 #include "identity.h"
 #include "balsa-index.h"

Modified: trunk/src/balsa-bonobo.h
==============================================================================
--- trunk/src/balsa-bonobo.h	(original)
+++ trunk/src/balsa-bonobo.h	Thu Apr  2 23:01:01 2009
@@ -24,6 +24,10 @@
 #ifndef __BALSA_BONOBO_H
 #define __BALSA_BONOBO_H
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #if HAVE_GNOME
 
 #include "Balsa.h" 

Modified: trunk/src/balsa-icons.h
==============================================================================
--- trunk/src/balsa-icons.h	(original)
+++ trunk/src/balsa-icons.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __BALSA_ICONS_H__
 #define __BALSA_ICONS_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include <gtk/gtk.h>
 
 #define BALSA_PIXMAP_ATTACHMENT			"balsa_attachment"

Modified: trunk/src/balsa-message.h
==============================================================================
--- trunk/src/balsa-message.h	(original)
+++ trunk/src/balsa-message.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __BALSA_MESSAGE_H__
 #define __BALSA_MESSAGE_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include "libbalsa.h"
 #include "balsa-app.h"
 

Modified: trunk/src/balsa-mime-widget-crypto.h
==============================================================================
--- trunk/src/balsa-mime-widget-crypto.h	(original)
+++ trunk/src/balsa-mime-widget-crypto.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __BALSA_MIME_WIDGET_CRYPTO_H__
 #define __BALSA_MIME_WIDGET_CRYPTO_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef HAVE_GPGME
 
 #include "balsa-app.h"

Modified: trunk/src/balsa-print-object-header.h
==============================================================================
--- trunk/src/balsa-print-object-header.h	(original)
+++ trunk/src/balsa-print-object-header.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __BALSA_PRINT_OBJECT_HEADER_H__
 #define __BALSA_PRINT_OBJECT_HEADER_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include "balsa-print-object.h"
 
 G_BEGIN_DECLS

Modified: trunk/src/main-window.h
==============================================================================
--- trunk/src/main-window.h	(original)
+++ trunk/src/main-window.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __MAIN_WINDOW_H__
 #define __MAIN_WINDOW_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef HAVE_NOTIFY
 #include <libnotify/notify.h>
 #endif

Modified: trunk/src/print.h
==============================================================================
--- trunk/src/print.h	(original)
+++ trunk/src/print.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __PRINT_H__
 #define __PRINT_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif				/* __cplusplus */

Modified: trunk/src/quote-color.h
==============================================================================
--- trunk/src/quote-color.h	(original)
+++ trunk/src/quote-color.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __BALSA_QUOTECOLOR_H__
 #define __BALSA_QUOTECOLOR_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif				/* __cplusplus */

Modified: trunk/src/save-restore.h
==============================================================================
--- trunk/src/save-restore.h	(original)
+++ trunk/src/save-restore.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __SAVE_RESTORE_H__
 #define __SAVE_RESTORE_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #include "libbalsa.h"
 #include "mailbox-node.h"
 

Modified: trunk/src/sendmsg-window.h
==============================================================================
--- trunk/src/sendmsg-window.h	(original)
+++ trunk/src/sendmsg-window.h	Thu Apr  2 23:01:01 2009
@@ -22,6 +22,10 @@
 #ifndef __BALSA_SENDMSG_H__
 #define __BALSA_SENDMSG_H__
 
+#ifndef BALSA_VERSION
+# error "Include config.h before this file."
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif				/* __cplusplus */



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