From: Peter Oberparleiter <[email protected]>
Use GCC_VERSION_LOWER() to check for gcc versions below a certain level.
Signed-off-by: Peter Oberparleiter <[email protected]>
---
include/linux/compiler-gcc.h | 3 +++
1 file changed, 3 insertions(+)
Index: linux-2.6.26-rc4/include/linux/compiler-gcc.h
===================================================================
--- linux-2.6.26-rc4.orig/include/linux/compiler-gcc.h
+++ linux-2.6.26-rc4/include/linux/compiler-gcc.h
@@ -6,6 +6,9 @@
* Common definitions for all gcc versions go here.
*/
+#define GCC_VERSION_LOWER(major, minor) ((__GNUC__ < major) || \
+ (__GNUC__ == major) && \
+ (__GNUC_MINOR__ < minor))
/* Optimization barrier */
/* The "volatile" is due to gcc bugs */