__restrict supported from VS 2005 and newer (#383)

Check if the MS compiler really supports this keyword.
This commit is contained in:
carlo-bramini 2018-05-14 13:52:28 +02:00 committed by Tom M
parent 36546a9efb
commit 04930d62d1
1 changed files with 1 additions and 1 deletions

View File

@ -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."