summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2010-09-26 07:22:23 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:55 +0200
commite3075d4c17fe8c5889d08b645c3986ebe9f6d60a (patch)
treefa0771654b5213b693d7dd23010fb929ecc7835d /misc.c
parent5d208d402d04dd608ae9e638304a6a35d1050cd8 (diff)
2010-09-26 Ivan Maidanski <ivmai@mail.ru>
* alloc.c (GC_parallel): Define only if THREADS. * misc.c (GC_get_parallel): Ditto. * include/gc.h (GC_parallel, GC_get_parallel, GC_get_suspend_signal, GC_allow_register_threads, GC_register_my_thread, GC_unregister_my_thread): Define only if GC_THREADS. * include/gc.h (GC_get_heap_size): Fix a typo in a comment.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/misc.c b/misc.c
index f3efd3f..e31386e 100644
--- a/misc.c
+++ b/misc.c
@@ -1605,11 +1605,13 @@ GC_API GC_word GC_CALL GC_get_gc_no(void)
return GC_gc_no;
}
-GC_API int GC_CALL GC_get_parallel(void)
-{
+#ifdef THREADS
+ GC_API int GC_CALL GC_get_parallel(void)
+ {
/* GC_parallel is initialized at start-up. */
return GC_parallel;
-}
+ }
+#endif
/* Setter and getter functions for the public R/W function variables. */
/* These functions are synchronized (like GC_set_warn_proc() and */