summaryrefslogtreecommitdiff
path: root/cffi/model.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-09-30 12:08:57 +0200
committerArmin Rigo <arigo@tunes.org>2015-09-30 12:08:57 +0200
commit80b9ee43e4ca6cb351c6d8ae9497ba1d86fa1dbf (patch)
treefa1bae6b6df5d81abf7bde78bd5a9d8acbd0cb4d /cffi/model.py
parent04d4814b8bac931832149067f501a5132e1ad8c3 (diff)
downloadcffi-80b9ee43e4ca6cb351c6d8ae9497ba1d86fa1dbf.tar.gz
Seems that "__restrict" is recognized in all gcc modes I could try,
and it should also be recognized on MSVC
Diffstat (limited to 'cffi/model.py')
-rw-r--r--cffi/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cffi/model.py b/cffi/model.py
index c7af8c7..15b8f2d 100644
--- a/cffi/model.py
+++ b/cffi/model.py
@@ -12,7 +12,7 @@ def qualify(quals, replace_with):
if quals & Q_CONST:
replace_with = ' const ' + replace_with.lstrip()
if quals & Q_RESTRICT:
- replace_with = ' restrict ' + replace_with.lstrip()
+ replace_with = ' __restrict ' + replace_with.lstrip()
return replace_with