mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Fix build with newer Visual Studio versions
in the __STDC_VERSION__ >= 201112L + _MSC_VER case YQ2_ATTR_INLINE wasn't defined and fixed some indenting in the surrounding code
This commit is contained in:
parent
15adee3b06
commit
89b0ed9f18
1 changed files with 8 additions and 7 deletions
|
@ -64,6 +64,7 @@ typedef unsigned char byte;
|
|||
#define YQ2_ATTR_INLINE __attribute__((always_inline)) inline
|
||||
#elif defined(_MSC_VER)
|
||||
#define YQ2_ATTR_MALLOC __declspec(restrict)
|
||||
#define YQ2_ATTR_INLINE __forceinline
|
||||
#else
|
||||
// no equivalent per see
|
||||
#define YQ2_ATTR_MALLOC
|
||||
|
|
Loading…
Reference in a new issue