From db4bc6f6be2a7f4ab833f5d5fee2a9198d81ecd5 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 8 Jul 2019 18:16:05 +0300 Subject: [PATCH] Add RESTRICT macro Applied as C keyword 'restrict' --- Utilities/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utilities/types.h b/Utilities/types.h index 71ae1d1f38..458d80371a 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -33,6 +33,7 @@ #define SAFE_BUFFERS __declspec(safebuffers) #define NEVER_INLINE __declspec(noinline) #define FORCE_INLINE __forceinline +#define RESTRICT __restrict #else // not _MSC_VER @@ -52,6 +53,7 @@ #define SAFE_BUFFERS #define NEVER_INLINE __attribute__((noinline)) #define FORCE_INLINE __attribute__((always_inline)) inline +#define RESTRICT __restrict__ #endif // _MSC_VER