From a6b6a426b139fee0863ba8fd85884bfcfa85c713 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Sat, 30 Nov 2024 17:24:56 +0100 Subject: [PATCH] game: Add C11 or newer support when defining ID_INLINE --- source/game/q_shared.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/game/q_shared.h b/source/game/q_shared.h index bf312dc..be9cc8b 100644 --- a/source/game/q_shared.h +++ b/source/game/q_shared.h @@ -332,6 +332,15 @@ static float LittleFloat (const float *l) { return FloatSwap(l); } #endif +//======================= C11 OR NEWER DEFINES ===================== + +// BFP - C11 or newer support +#ifndef ID_INLINE +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L + #define ID_INLINE inline +#endif +#endif + //============================================================= typedef unsigned char byte;