mirror of https://github.com/swig/swig
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,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…
Reference in New Issue