dovecot-2.0-sslstream: Test WORDS_BIGENDIAN with #if, not #ifdef.

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:45 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/b55afe3e957c
changeset: 10205:b55afe3e957c
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 27 12:16:42 2009 -0400
description:
Test WORDS_BIGENDIAN with #if, not #ifdef.
Patch by Apple.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-transaction-log-file.c |    4 ++--

diffs (21 lines):

diff -r 1e0c572f1937 -r b55afe3e957c src/lib-index/mail-transaction-log-file.c
--- 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 @@ mail_transaction_log_init_hdr(struct mai
 	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 @@ mail_transaction_log_file_read_hdr(struc
 		/* 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) {


More information about the dovecot-cvs mailing list