Fix disclaim_test to get GC_PTHREADS macro defined if multi-threaded
authorIvan Maidanski <ivmai@mail.ru>
Thu, 12 Apr 2012 19:53:50 +0000 (23:53 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 12 Apr 2012 19:53:50 +0000 (23:53 +0400)
* tests/disclaim_test.c: Include config.h if HAVE_CONFIG_H to define
GC_PTHREADS (indirectly) if multi-threading is on.

tests/disclaim_test.c

index 11eb17e..3a57bc0 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
+#ifdef HAVE_CONFIG_H
+  /* For GC_[P]THREADS */
+# include "private/config.h"
+#endif
+
 #include "gc_disclaim.h"
 
 #define my_assert(e) \