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:
parent
5f8c936569
commit
65f377c422
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue