Skip to content

Commit

Permalink
game: Add C11 or newer support when defining ID_INLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
LegendaryGuard committed Nov 30, 2024
1 parent 00f0bac commit a6b6a42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/game/q_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a6b6a42

Please sign in to comment.