Skip to content
This repository
Browse code

Fix thread-related tests for pthreads-w32

* tests/initsecondarythread.c: Include "private/config.h" if
HAVE_CONFIG_H (mostly to have GC_WIN32_PTHREADS defined for
pthreads-w32 target).
* tests/thread_leak_test.c: Likewise.
* tests/threadkey_test.c: Likewise.
  • Loading branch information...
commit 709d127c2a8a1e55dce61fb2e4d5786a46426ed1 1 parent 9637d2e
Ivan Maidanski authored June 17, 2012
4  tests/initsecondarythread.c
@@ -15,6 +15,10 @@
15 15
  * thread.
16 16
  */
17 17
 
  18
+#ifdef HAVE_CONFIG_H
  19
+# include "private/config.h"
  20
+#endif
  21
+
18 22
 #ifndef GC_THREADS
19 23
 # define GC_THREADS
20 24
 #endif
4  tests/thread_leak_test.c
... ...
@@ -1,4 +1,8 @@
1 1
 
  2
+#ifdef HAVE_CONFIG_H
  3
+# include "private/config.h"
  4
+#endif
  5
+
2 6
 #ifndef GC_THREADS
3 7
 # define GC_THREADS
4 8
 #endif
4  tests/threadkey_test.c
... ...
@@ -1,4 +1,8 @@
1 1
 
  2
+#ifdef HAVE_CONFIG_H
  3
+# include "private/config.h"
  4
+#endif
  5
+
2 6
 #ifndef GC_THREADS
3 7
 # define GC_THREADS
4 8
 #endif

0 notes on commit 709d127

Please sign in to comment.
Something went wrong with that request. Please try again.