aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/director_thread.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/director_thread.i')
-rw-r--r--Examples/test-suite/director_thread.i10
1 files changed, 5 insertions, 5 deletions
diff --git a/Examples/test-suite/director_thread.i b/Examples/test-suite/director_thread.i
index c4564737f..845f8e093 100644
--- a/Examples/test-suite/director_thread.i
+++ b/Examples/test-suite/director_thread.i
@@ -20,7 +20,6 @@
#ifdef _WIN32
#include <windows.h>
#include <process.h>
-#include <stdio.h>
#else
#include <pthread.h>
#include <errno.h>
@@ -30,6 +29,7 @@
#endif
#include <assert.h>
+#include <stdio.h>
#include "swig_examples_lock.h"
class Foo;
@@ -42,15 +42,15 @@ extern "C" {
static pthread_t thread;
#endif
- static int thread_terminate = 0;
+ static int swig_thread_terminate = 0;
static SwigExamples::CriticalSection critical_section;
int get_thread_terminate() {
SwigExamples::Lock lock(critical_section);
- return thread_terminate;
+ return swig_thread_terminate;
}
void set_thread_terminate(int value) {
SwigExamples::Lock lock(critical_section);
- thread_terminate = value;
+ swig_thread_terminate = value;
}
}
%}
@@ -73,7 +73,7 @@ extern "C" {
Foo() : val(0) {
}
- virtual ~Foo() {
+ virtual ~Foo() {
}
void stop() {