1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
%module restrict_cplusplus %{ // For PHP 5.3 / gcc-4.4 #ifdef restrict #undef restrict #endif struct Foo { int restrict; }; %} struct Foo { int restrict; };