summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-06-06 15:43:26 +0000
committermidipix <writeonce@midipix.org>2019-06-06 15:43:26 +0000
commit045354e3955bcc0ed525e6cccdd1ae5f549e1e78 (patch)
tree27ff456fea1dc1e9cd95457b2a2fca787716723a
parentc33a2266f2dbfd11e3659fddcafa8f6d02853cfa (diff)
downloadmmglue-045354e3955bcc0ed525e6cccdd1ae5f549e1e78.tar.bz2
mmglue-045354e3955bcc0ed525e6cccdd1ae5f549e1e78.tar.xz
sys/debug.h: add the usual header-inclusion and language encapsulation.
-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