]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib/bits.c: Finish fix for compiling with gcc 3.0 .. 3.3
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 21 Jun 2017 13:54:25 +0000 (16:54 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 1 Aug 2017 10:40:21 +0000 (13:40 +0300)
src/lib/bits.c

index f6117f1b5cb950e1efc4476d9b6b5ef5f9ecba62..7939e0adc2ef6552d971ff256e199b0d4fdd1f56 100644 (file)
@@ -12,7 +12,7 @@ size_t nearest_power(size_t num)
        return n;
 }
 
-#if __GNUC__ > 2
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
 /* Lucky you, it's all inline intrinsics */
 #else
 unsigned int bits_required8(uint8_t num)