From b4bbe79968d94786a78af8d0cf816f09e1c705ec Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 21 Aug 2006 16:58:29 +0000 Subject: [PATCH] Use __GNUC_PREREQ__() for the GCC 4 test, too. --- include/stddef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/stddef.h b/include/stddef.h index 2cf82dc36bad..b00b5e14a431 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.14 2006/08/21 15:31:18 christos Exp $ */ +/* $NetBSD: stddef.h,v 1.15 2006/08/21 16:58:29 thorpej Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -52,7 +52,7 @@ typedef _BSD_WCHAR_T_ wchar_t; #include -#if __GNUC__ >= 4 +#if __GNUC_PREREQ__(4, 0) #define offsetof(type, member) __builtin_offsetof(type, member) #elif !defined(__cplusplus) #define offsetof(type, member) ((size_t)(unsigned long)(&((type *)0)->member))