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:
b53ef99
)
add CYTHON_RESTRICT definition for MSVC
author
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 26 Apr 2013 03:57:18 +0000
(
05:57
+0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 26 Apr 2013 03:57:18 +0000
(
05:57
+0200)
Cython/Utility/ModuleSetupCode.c
patch
|
blob
|
history
diff --git
a/Cython/Utility/ModuleSetupCode.c
b/Cython/Utility/ModuleSetupCode.c
index
698a1be
..
f261e18
100644
(file)
--- a/
Cython/Utility/ModuleSetupCode.c
+++ b/
Cython/Utility/ModuleSetupCode.c
@@
-279,6
+279,8
@@
#ifndef CYTHON_RESTRICT
#if defined(__GNUC__)
#define CYTHON_RESTRICT __restrict__
+ #elif defined(_MSC_VER)
+ #define CYTHON_RESTRICT __restrict
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define CYTHON_RESTRICT restrict
#else