From cd665ae6883155b57355ce7fe359035dc1d65596 Mon Sep 17 00:00:00 2001 From: Souryo Date: Thu, 22 Dec 2016 18:49:24 -0500 Subject: [PATCH] Linux: Force some inline functions in clang (faster) --- Core/stdafx.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Core/stdafx.h b/Core/stdafx.h index 29c4c2e5..51fce629 100644 --- a/Core/stdafx.h +++ b/Core/stdafx.h @@ -19,8 +19,12 @@ #include "../Utilities/UTF8Util.h" -#ifdef __GNUC__ -#define __forceinline +#ifdef __clang__ + #define __forceinline __attribute__((always_inline)) +#else + #ifdef __GNUC__ + #define __forceinline + #endif #endif using std::vector;