Mercurial > dovecot > core-2.2
changeset 10204:b55afe3e957c HEAD
Test WORDS_BIGENDIAN with #if, not #ifdef.
Patch by Apple.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 27 Oct 2009 12:16:42 -0400 |
parents | 1e0c572f1937 |
children | 13b3a3ce892c |
files | src/lib-index/mail-transaction-log-file.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-file.c Tue Oct 27 12:10:15 2009 -0400 +++ b/src/lib-index/mail-transaction-log-file.c Tue Oct 27 12:16:42 2009 -0400 @@ -189,7 +189,7 @@ hdr->hdr_size = sizeof(struct mail_transaction_log_header); hdr->indexid = log->index->indexid; hdr->create_stamp = ioloop_time; -#ifndef WORDS_BIGENDIAN +#if !WORDS_BIGENDIAN hdr->compat_flags |= MAIL_INDEX_COMPAT_LITTLE_ENDIAN; #endif @@ -404,7 +404,7 @@ /* we have compatibility flags */ enum mail_index_header_compat_flags compat_flags = 0; -#ifndef WORDS_BIGENDIAN +#if !WORDS_BIGENDIAN compat_flags |= MAIL_INDEX_COMPAT_LITTLE_ENDIAN; #endif if (file->hdr.compat_flags != compat_flags) {