dovecot-2.2: Fixed compiling with gcc v3.3 and older.

dovecot at dovecot.org dovecot at dovecot.org
Wed May 29 03:18:12 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/8307019ce491
changeset: 16410:8307019ce491
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 29 03:18:04 2013 +0300
description:
Fixed compiling with gcc v3.3 and older.
Perhaps the check needs to be also for somewhat newer versions?..

diffstat:

 src/lib/macros.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c6165b5d6cce -r 8307019ce491 src/lib/macros.h
--- a/src/lib/macros.h	Tue May 28 18:18:45 2013 +0300
+++ b/src/lib/macros.h	Wed May 29 03:18:04 2013 +0300
@@ -142,7 +142,7 @@
 #endif
 
 /* Macros to provide type safety for callback functions' context parameters */
-#ifdef __GNUC__
+#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
 #  define CALLBACK_TYPECHECK(callback, type) \
 	(COMPILE_ERROR_IF_TRUE(!__builtin_types_compatible_p( \
 		typeof(&callback), type)) ? 1 : 0)


More information about the dovecot-cvs mailing list