diff --git a/Examples/test-suite/director_thread.i b/Examples/test-suite/director_thread.i index 699ccf5c4ae..260bce77494 100644 --- a/Examples/test-suite/director_thread.i +++ b/Examples/test-suite/director_thread.i @@ -18,7 +18,8 @@ #include #endif -#include +#include +#include "swig_examples_lock.h" class Foo; extern "C" { @@ -76,7 +77,7 @@ extern "C" { void run() { %#ifdef _WIN32 - int thread_id = 0; + unsigned int thread_id = 0; thread_handle = (HANDLE)_beginthreadex(NULL,0,working,this,0,&thread_id); if (thread_handle == 0) { fprintf(stderr, "_beginthreadex failed in run()\n");