summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/debug.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/sys/debug.h b/include/sys/debug.h
index a483463..0d98d44 100644
--- a/include/sys/debug.h
+++ b/include/sys/debug.h
@@ -1,8 +1,15 @@
+#ifndef _SYS_DEBUG_H
+#define _SYS_DEBUG_H
+
#include <stdint.h>
#include <stddef.h>
#include <signal.h>
#include <unistd.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* debug states */
enum __dbg_state {
__DBG_STATE_IDLE,
@@ -160,3 +167,9 @@ int __dbg_query_syspid(int);
/* code of last debug operation error encountered by this pthread */
int __dbg_common_error(void);
int __dbg_native_error(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif