Fix compatibility with msvc < 1400
authorChristoph Gohlke <cgohlke@uci.edu>
Sat, 11 May 2013 17:51:06 +0000 (10:51 -0700)
committerChristoph Gohlke <cgohlke@uci.edu>
Sat, 11 May 2013 17:51:06 +0000 (10:51 -0700)
Visual Studio .NET 2003, used by Python 2.5 32 bit, does not support the '__restrict' keyword.

Cython/Utility/ModuleSetupCode.c

index f261e18..13d4418 100644 (file)
 #ifndef CYTHON_RESTRICT
   #if defined(__GNUC__)
     #define CYTHON_RESTRICT __restrict__
-  #elif defined(_MSC_VER)
+  #elif defined(_MSC_VER) && _MSC_VER >= 1400
     #define CYTHON_RESTRICT __restrict
   #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
     #define CYTHON_RESTRICT restrict