Author: Armin Rigo <ar...@tunes.org> Branch: qualtypes Changeset: r2287:f50320b732db Date: 2015-09-30 12:08 +0200 http://bitbucket.org/cffi/cffi/changeset/f50320b732db/
Log: Seems that "__restrict" is recognized in all gcc modes I could try, and it should also be recognized on MSVC diff --git a/cffi/model.py b/cffi/model.py --- a/cffi/model.py +++ b/cffi/model.py @@ -12,7 +12,7 @@ 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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit