Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6502:c4cb7f25bf09 HEAD
Don't forward declare enums. It doesn't seem to work with all compilers.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 25 Sep 2007 21:57:32 +0300 |
parents | dee85392c5c1 |
children | cc60666f66bb |
files | src/lib-index/mail-index.h src/lib-storage/index/cydir/cydir-sync.h src/lib-storage/index/cydir/cydir-transaction.c src/lib-storage/index/dbox/dbox-sync.h src/plugins/fts-squat/squat-trie.h |
diffstat | 5 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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" @@ -9,8 +10,6 @@ #define MAIL_INDEX_HEADER_MIN_SIZE 120 -enum file_lock_method; - enum mail_index_open_flags { /* Create index if it doesn't exist */ MAIL_INDEX_OPEN_FLAG_CREATE = 0x01,
--- 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 {
--- 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;
--- 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 {
--- 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 *