dovecot: Don't forward declare enums. It doesn't seem to work wi...

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 25 21:57:35 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/c4cb7f25bf09
changeset: 6502:c4cb7f25bf09
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 25 21:57:32 2007 +0300
description:
Don't forward declare enums. It doesn't seem to work with all compilers.

diffstat:

5 files changed, 3 insertions(+), 7 deletions(-)
src/lib-index/mail-index.h                      |    3 +--
src/lib-storage/index/cydir/cydir-sync.h        |    1 -
src/lib-storage/index/cydir/cydir-transaction.c |    2 +-
src/lib-storage/index/dbox/dbox-sync.h          |    1 -
src/plugins/fts-squat/squat-trie.h              |    3 +--

diffs (68 lines):

diff -r dee85392c5c1 -r c4cb7f25bf09 src/lib-index/mail-index.h
--- a/src/lib-index/mail-index.h	Tue Sep 25 19:34:02 2007 +0300
+++ b/src/lib-index/mail-index.h	Tue Sep 25 21:57:32 2007 +0300
@@ -1,6 +1,7 @@
 #ifndef MAIL_INDEX_H
 #define MAIL_INDEX_H
 
+#include "file-lock.h"
 #include "mail-types.h"
 #include "seq-range-array.h"
 
@@ -8,8 +9,6 @@
 #define MAIL_INDEX_MINOR_VERSION 1
 
 #define MAIL_INDEX_HEADER_MIN_SIZE 120
-
-enum file_lock_method;
 
 enum mail_index_open_flags {
 	/* Create index if it doesn't exist */
diff -r dee85392c5c1 -r c4cb7f25bf09 src/lib-storage/index/cydir/cydir-sync.h
--- a/src/lib-storage/index/cydir/cydir-sync.h	Tue Sep 25 19:34:02 2007 +0300
+++ b/src/lib-storage/index/cydir/cydir-sync.h	Tue Sep 25 21:57:32 2007 +0300
@@ -1,7 +1,6 @@
 #ifndef CYDIR_SYNC_H
 #define CYDIR_SYNC_H
 
-enum mailbox_sync_flags;
 struct mailbox;
 
 struct cydir_sync_context {
diff -r dee85392c5c1 -r c4cb7f25bf09 src/lib-storage/index/cydir/cydir-transaction.c
--- a/src/lib-storage/index/cydir/cydir-transaction.c	Tue Sep 25 19:34:02 2007 +0300
+++ b/src/lib-storage/index/cydir/cydir-transaction.c	Tue Sep 25 21:57:32 2007 +0300
@@ -2,8 +2,8 @@
 
 #include "lib.h"
 #include "array.h"
+#include "cydir-storage.h"
 #include "cydir-sync.h"
-#include "cydir-storage.h"
 
 static void (*next_hook_mail_index_transaction_created)
 	(struct mail_index_transaction *t) = NULL;
diff -r dee85392c5c1 -r c4cb7f25bf09 src/lib-storage/index/dbox/dbox-sync.h
--- a/src/lib-storage/index/dbox/dbox-sync.h	Tue Sep 25 19:34:02 2007 +0300
+++ b/src/lib-storage/index/dbox/dbox-sync.h	Tue Sep 25 21:57:32 2007 +0300
@@ -1,7 +1,6 @@
 #ifndef DBOX_SYNC_H
 #define DBOX_SYNC_H
 
-enum mailbox_sync_flags;
 struct mailbox;
 
 struct dbox_sync_file_entry {
diff -r dee85392c5c1 -r c4cb7f25bf09 src/plugins/fts-squat/squat-trie.h
--- a/src/plugins/fts-squat/squat-trie.h	Tue Sep 25 19:34:02 2007 +0300
+++ b/src/plugins/fts-squat/squat-trie.h	Tue Sep 25 21:57:32 2007 +0300
@@ -1,8 +1,7 @@
 #ifndef SQUAT_TRIE_H
 #define SQUAT_TRIE_H
 
-enum file_lock_method;
-
+#include "file-lock.h"
 #include "seq-range-array.h"
 
 struct squat_trie *


More information about the dovecot-cvs mailing list