diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2015-01-20 19:41:36 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2015-01-20 19:41:36 +0000 |
commit | 954b798ba7661884b54e9e13abc78b8dcf94b066 (patch) | |
tree | 41d15c1e6f2a7391cc1b24c11aa901500b8b29c4 /otherlibs/systhreads | |
parent | 66af6470a62e688c1197639d3b1bd945a90efd0a (diff) | |
download | ocaml-954b798ba7661884b54e9e13abc78b8dcf94b066.tar.gz |
PR#6573: extern "C" for systhreads/threads.h
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15788 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/systhreads')
-rw-r--r-- | otherlibs/systhreads/threads.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/otherlibs/systhreads/threads.h b/otherlibs/systhreads/threads.h index 6a97b25103..616138da60 100644 --- a/otherlibs/systhreads/threads.h +++ b/otherlibs/systhreads/threads.h @@ -14,6 +14,10 @@ #ifndef CAML_THREADS_H #define CAML_THREADS_H +#ifdef __cplusplus +extern "C" { +#endif + CAMLextern void caml_enter_blocking_section (void); CAMLextern void caml_leave_blocking_section (void); #define caml_acquire_runtime_system caml_leave_blocking_section @@ -55,4 +59,8 @@ CAMLextern int caml_c_thread_unregister(void); Both functions return 1 on success, 0 on error. */ +#ifdef __cplusplus +} +#endif + #endif /* CAML_THREADS_H */ |