summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
authorKarel Zak2011-02-08 16:35:41 +0100
committerKarel Zak2011-02-08 16:35:41 +0100
commit50a1e0cf8b5a1e1b978c24f8a1931c8ed4929f7b (patch)
tree66631c2a2a5a92bc01fcf72f10f514568cbb3494 /include/c.h
parentlibmount: more robust flock() usage (diff)
downloadkernel-qcow2-util-linux-50a1e0cf8b5a1e1b978c24f8a1931c8ed4929f7b.tar.gz
kernel-qcow2-util-linux-50a1e0cf8b5a1e1b978c24f8a1931c8ed4929f7b.tar.xz
kernel-qcow2-util-linux-50a1e0cf8b5a1e1b978c24f8a1931c8ed4929f7b.zip
include: [c.h]: fix __alloc_size__ test
Reported-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/c.h')
-rw-r--r--include/c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/c.h b/include/c.h
index f50a338c9..4bb288758 100644
--- a/include/c.h
+++ b/include/c.h
@@ -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)