# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0
# endif
+# ifdef __cplusplus
+}
+# endif
+
#endif
/* ========================================================================= */
(pth_in_use () ? pth_exit (RETVAL) : 0)
# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0
+# ifdef __cplusplus
+}
+# endif
+
#endif
/* ========================================================================= */
# define gl_thread_exit(RETVAL) \
(pthread_in_use () ? thr_exit (RETVAL) : 0)
# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0
-#endif
+# ifdef __cplusplus
+}
+# endif
+
+#endif
/* ========================================================================= */
#endif
-
/* ========================================================================= */
/* Macros with built-in error handling. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
static inline gl_thread_t
gl_thread_create (void *(*func) (void *arg), void *arg)
{
} \
while (0)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _GLTHREAD_THREAD_H */