]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Fixed compiling with gcc v3.3 and older.
authorTimo Sirainen <tss@iki.fi>
Wed, 29 May 2013 00:18:04 +0000 (03:18 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 29 May 2013 00:18:04 +0000 (03:18 +0300)
Perhaps the check needs to be also for somewhat newer versions?..

src/lib/macros.h

index c5e4fede6b0368321d6efa8adcfb780282bbcb41..921055e7b304ceed382868aed444a561d690798b 100644 (file)
 #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)