From 7f32c88b6c6c84a79453c827d74ffe84f7199b7a Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 7 Oct 2012 16:39:37 -0700 Subject: [PATCH] build - Unbreak world * Fix issue w/ last commit Submitted-by: marino --- sys/cpu/i386/include/stdint.h | 2 +- sys/cpu/x86_64/include/stdint.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cpu/i386/include/stdint.h b/sys/cpu/i386/include/stdint.h index 60e5e307f4..8b5cada100 100644 --- a/sys/cpu/i386/include/stdint.h +++ b/sys/cpu/i386/include/stdint.h @@ -116,7 +116,7 @@ typedef volatile int __atomic_intr_t; /* * Its convenient to put these here rather then create another header file. */ -#if __GNUC_PREREQ__(4, 1) +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) #define __offsetof(type, field) __builtin_offsetof(type, field) #else #ifndef __cplusplus diff --git a/sys/cpu/x86_64/include/stdint.h b/sys/cpu/x86_64/include/stdint.h index dabdc740eb..6e83d252c4 100644 --- a/sys/cpu/x86_64/include/stdint.h +++ b/sys/cpu/x86_64/include/stdint.h @@ -132,7 +132,7 @@ typedef volatile int __atomic_intr_t; /* * Its convenient to put these here rather then create another header file. */ -#if __GNUC_PREREQ__(4, 1) +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) #define __offsetof(type, field) __builtin_offsetof(type, field) #else #ifndef __cplusplus -- 2.41.0