Commit 42ca727c authored by Christoph Gohlke's avatar Christoph Gohlke

Fix compatibility with msvc < 1400

Visual Studio .NET 2003, used by Python 2.5 32 bit, does not support the '__restrict' keyword.
parent ff46004a
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
#ifndef CYTHON_RESTRICT #ifndef CYTHON_RESTRICT
#if defined(__GNUC__) #if defined(__GNUC__)
#define CYTHON_RESTRICT __restrict__ #define CYTHON_RESTRICT __restrict__
#elif defined(_MSC_VER) #elif defined(_MSC_VER) && _MSC_VER >= 1400
#define CYTHON_RESTRICT __restrict #define CYTHON_RESTRICT __restrict
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define CYTHON_RESTRICT restrict #define CYTHON_RESTRICT restrict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment