diff --git a/SWIG/Examples/test-suite/arrays.i b/SWIG/Examples/test-suite/arrays.i index 37a4f0029..decce7415 100644 --- a/SWIG/Examples/test-suite/arrays.i +++ b/SWIG/Examples/test-suite/arrays.i @@ -3,6 +3,9 @@ This test case tests that various types of arrays are working. */ %module arrays +%{ +#include +%} %inline %{ #define ARRAY_LEN 2 diff --git a/SWIG/Examples/test-suite/lextype.i b/SWIG/Examples/test-suite/lextype.i index 5128cbaa4..0c0ef66fe 100644 --- a/SWIG/Examples/test-suite/lextype.i +++ b/SWIG/Examples/test-suite/lextype.i @@ -23,6 +23,9 @@ code is not functioning properly it will fail to compile. */ %module lextype +%{ +#include +%} %typemap(in) Animal () { diff --git a/SWIG/Examples/test-suite/newobject2.i b/SWIG/Examples/test-suite/newobject2.i index f0c43edeb..92b997e5d 100644 --- a/SWIG/Examples/test-suite/newobject2.i +++ b/SWIG/Examples/test-suite/newobject2.i @@ -6,6 +6,10 @@ %module newobject2 +%{ +#include +%} + %{ /* Global initialization (not wrapped) */ int g_fooCount = 0; diff --git a/SWIG/Examples/test-suite/overload_extend.i b/SWIG/Examples/test-suite/overload_extend.i index 70225c847..6199d9be3 100644 --- a/SWIG/Examples/test-suite/overload_extend.i +++ b/SWIG/Examples/test-suite/overload_extend.i @@ -1,6 +1,10 @@ %module overload_extend #ifndef __cplusplus +%{ +#include +%} + %typemap(default) double y "$1=1000;"; #endif diff --git a/SWIG/Examples/test-suite/private_assign.i b/SWIG/Examples/test-suite/private_assign.i index ce1258e16..acc4d0bc9 100644 --- a/SWIG/Examples/test-suite/private_assign.i +++ b/SWIG/Examples/test-suite/private_assign.i @@ -3,6 +3,9 @@ // objects that have complicated state. %module private_assign +%{ +#include +%} %inline %{ class Foo {