From d50a2c9fa0c9898df6098ac8e468e31a385febce Mon Sep 17 00:00:00 2001 From: dsl Date: Sat, 2 Jun 2012 21:27:51 +0000 Subject: [PATCH] Add a __always_inline --- sys/sys/cdefs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index f8ddefe26468..56fe9f56626a 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.98 2012/04/30 20:41:33 pgoyette Exp $ */ +/* $NetBSD: cdefs.h,v 1.99 2012/06/02 21:27:51 dsl Exp $ */ /* * Copyright (c) 1991, 1993 @@ -232,6 +232,12 @@ #define __noinline /* nothing */ #endif +#if __GNUC_PREREQ__(3, 0) +#define __always_inline __attribute__((__always_inline__)) +#else +#define __always_inline /* nothing */ +#endif + #if __GNUC_PREREQ__(4, 1) #define __returns_twice __attribute__((__returns_twice__)) #else