]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include: [c.h]: fix __alloc_size__ test
authorKarel Zak <kzak@redhat.com>
Tue, 8 Feb 2011 15:35:41 +0000 (16:35 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Feb 2011 15:35:41 +0000 (16:35 +0100)
Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h

index f50a338c9c9af30a916ceb2fef89c5719aa960a6..4bb28875889755a2afdcefded03d620a723d1d84 100644 (file)
@@ -37,7 +37,7 @@
  * Function attributes
  */
 #ifndef __ul_alloc_size
-# if __GNUC_PREREQ (3, 0)
+# if __GNUC_PREREQ (4, 3)
 #  define __ul_alloc_size(s) __attribute__((alloc_size(s)))
 # else
 #  define __ul_alloc_size(s)
@@ -45,7 +45,7 @@
 #endif
 
 #ifndef __ul_calloc_size
-# if __GNUC_PREREQ (3, 0)
+# if __GNUC_PREREQ (4, 3)
 #  define __ul_calloc_size(n, s) __attribute__((alloc_size(n, s)))
 # else
 #  define __ul_calloc_size(n, s)