Allow C++ access to the defer ABI
@@ -10,6 +10,9 @@ forked process.
*/
#define H_DEFER_H
+#ifdef __cplusplus
+extern "C" {
+#endif
/* *****************************************************************************
Core API
***************************************************************************** */
@@ -61,4 +64,8 @@ Return value is ignored.
*/
int defer_join_thread(void *p_thr);
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif
+
#endif
