mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Restrict for MSVC (#3794)
This commit is contained in:
committed by
Ted John
parent
268baa62f7
commit
14de1cd5eb
@@ -39,11 +39,15 @@
|
||||
// aliasing the same memory area. Using it lets compiler generate better code. If your compiler
|
||||
// does not support it, feel free to drop it, at some performance hit.
|
||||
#ifdef __cplusplus
|
||||
#if __GNUC__
|
||||
#if _MSC_VER
|
||||
#define RESTRICT __restrict
|
||||
#else
|
||||
#define RESTRICT __restrict__
|
||||
#endif
|
||||
#else
|
||||
#if __GNUC__
|
||||
#if _MSC_VER
|
||||
#define RESTRICT __restrict
|
||||
#else
|
||||
#define RESTRICT restrict
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user