summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorChristoph Gohlke <cgohlke@uci.edu>2013-05-11 10:51:06 -0700
committerChristoph Gohlke <cgohlke@uci.edu>2013-05-11 10:51:06 -0700
commit42ca727c00f9cb8e536a018b9e2131a757ee9d36 (patch)
tree8bd9adaaaf5e10db380a47f4329e56a7e88bf006 /Cython/Utility/ModuleSetupCode.c
parentff46004a09a2855af4e87ab450af6d28243775fc (diff)
downloadcython-42ca727c00f9cb8e536a018b9e2131a757ee9d36.tar.gz
Fix compatibility with msvc < 1400
Visual Studio .NET 2003, used by Python 2.5 32 bit, does not support the '__restrict' keyword.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index f261e18db..13d4418f3 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -279,7 +279,7 @@
#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