summaryrefslogtreecommitdiff
path: root/include/private/pthread_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/private/pthread_support.h')
-rw-r--r--include/private/pthread_support.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/private/pthread_support.h b/include/private/pthread_support.h
index 57a6cd90..8df6bc21 100644
--- a/include/private/pthread_support.h
+++ b/include/private/pthread_support.h
@@ -36,10 +36,7 @@
# include "dbg_mlc.h" /* for oh type */
#endif
-/* Note: never put extern "C" around an #include. */
-#ifdef __cplusplus
- extern "C" {
-#endif
+EXTERN_C_BEGIN
/* We use the allocation lock to protect thread-related data structures. */
@@ -184,9 +181,7 @@ GC_INNER_PTHRSTART GC_thread GC_start_rtn_prepare_thread(
struct GC_stack_base *sb, void *arg);
GC_INNER_PTHRSTART void GC_thread_exit_proc(void *);
-#ifdef __cplusplus
- } /* extern "C" */
-#endif
+EXTERN_C_END
#endif /* GC_PTHREADS && !GC_WIN32_THREADS */