From 0b4660ae5ae7c822294025cc230d228185aed2f0 Mon Sep 17 00:00:00 2001 From: X512 Date: Wed, 26 May 2021 22:16:22 +0900 Subject: [PATCH] BeBuild: add ALWAYS_INLINE macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit only available on gcc 4 and upper. Change-Id: Ifc059d5fedd15a5aeda1514312fbbf98a72d3128 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4005 Reviewed-by: Jérôme Duval --- headers/os/BeBuild.h | 1 + 1 file changed, 1 insertion(+) diff --git a/headers/os/BeBuild.h b/headers/os/BeBuild.h index cbb49f34b1..77f577e670 100644 --- a/headers/os/BeBuild.h +++ b/headers/os/BeBuild.h @@ -82,6 +82,7 @@ __attribute__((format(__printf__, _format_, _args_))) #if __GNUC__ >= 4 # define _EXPORT __attribute__((visibility("default"))) +# define B_ALWAYS_INLINE __attribute__((always_inline)) inline #else # define _EXPORT #endif