From 04930d62d16657348deac0213b3338d7189ed4d2 Mon Sep 17 00:00:00 2001 From: carlo-bramini <30959007+carlo-bramini@users.noreply.github.com> Date: Mon, 14 May 2018 13:52:28 +0200 Subject: [PATCH] __restrict supported from VS 2005 and newer (#383) Check if the MS compiler really supports this keyword. --- src/utils/fluid_sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/fluid_sys.h b/src/utils/fluid_sys.h index 210225c1..498b961f 100644 --- a/src/utils/fluid_sys.h +++ b/src/utils/fluid_sys.h @@ -63,7 +63,7 @@ void fluid_time_config(void); #define FLUID_RESTRICT restrict #elif defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) #define FLUID_RESTRICT __restrict__ -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && _MSC_VER >= 1400 #define FLUID_RESTRICT __restrict #else #warning "Dont know how this compiler handles restrict pointers, refuse to use them."