diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2011-02-05 23:04:05 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2011-02-05 23:04:05 +0000 |
commit | 65f377c422e33edfbedb4babd0fc0cab14b1fd03 (patch) | |
tree | 03bc37dce5fdc6939dc7a02e7973751e8c04051f | |
parent | 5f8c936569cda5b88112f71aafa1bf7d86ba23a3 (diff) | |
download | swig-65f377c422e33edfbedb4babd0fc0cab14b1fd03.tar.gz |
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
-rw-r--r-- | Examples/test-suite/restrict_cplusplus.i | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Examples/test-suite/restrict_cplusplus.i b/Examples/test-suite/restrict_cplusplus.i index 4e4bfc277..62abffa52 100644 --- a/Examples/test-suite/restrict_cplusplus.i +++ b/Examples/test-suite/restrict_cplusplus.i @@ -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; +}; |