aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-03-05 20:03:31 +0000
committerH. Peter Anvin <hpa@zytor.com>2005-03-05 20:03:31 +0000
commitbc4948e34db88f0378a54064014cce80b746e882 (patch)
treeac163b4b935eb2f2ccf87a0b737af9055cce0744
parent61943f414571abad90f4cc2191bc15fd960644ed (diff)
downloadklibc-bc4948e34db88f0378a54064014cce80b746e882.tar.gz
__GNUC_MAJOR__ -> __GNUC__klibc-0.213
-rw-r--r--include/klibc/compiler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/klibc/compiler.h b/include/klibc/compiler.h
index 823996e7773cf..ee697adf08326 100644
--- a/include/klibc/compiler.h
+++ b/include/klibc/compiler.h
@@ -22,7 +22,7 @@
/* How to declare a function that *must* be inlined */
#ifdef __GNUC__
-# if __GNUC_MAJOR__ >= 3
+# if __GNUC__ >= 3
# define __must_inline static __inline__ __attribute__((always_inline))
# else
# define __must_inline extern __inline__
@@ -84,14 +84,14 @@
#endif
/* malloc() function (returns unaliased pointer) */
-#if defined(__GNUC__) && (__GNUC_MAJOR__ >= 3)
+#if defined(__GNUC__) && (__GNUC__ >= 3)
# define __mallocfunc __attribute__((malloc))
#else
# define __mallocfunc
#endif
/* likely/unlikely */
-#if defined(__GNUC__) && (__GNUC_MAJOR__ > 2 || (__GNUC_MAJOR__ == 2 && __GNUC_MINOR__ >= 95))
+#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
# define __likely(x) __builtin_expect((x), 1)
# define __unlikely(x) __builtin_expect((x), 0)
#else