projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff46004
)
Fix compatibility with msvc < 1400
author
Christoph Gohlke
<cgohlke@uci.edu>
Sat, 11 May 2013 17:51:06 +0000
(10:51 -0700)
committer
Christoph 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
patch
|
blob
|
history
diff --git
a/Cython/Utility/ModuleSetupCode.c
b/Cython/Utility/ModuleSetupCode.c
index
f261e18
..
13d4418
100644
(file)
--- 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