Hack for testcase to compile under PHP 5.3 / gcc-4.4

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-02-05 23:04:05 +00:00
parent 5f8c936569
commit 65f377c422
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,15 @@
%module restrict_cplusplus
%inline %{
%{
// For PHP 5.3 / gcc-4.4
#ifdef restrict
#undef restrict
#endif
struct Foo {
int restrict;
};
%}
struct Foo {
int restrict;
};