aboutsummaryrefslogtreecommitdiff
path: root/include/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/frame.h')
-rw-r--r--include/frame.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/frame.h b/include/frame.h
index 9b8194b7..47d808ca 100644
--- a/include/frame.h
+++ b/include/frame.h
@@ -1,3 +1,9 @@
+#ifndef _FRAME_H_
+#define _FRAME_H_ 1
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
typedef struct Frbox Frbox;
typedef struct Frame Frame;
@@ -83,3 +89,7 @@ void frinittick(Frame*);
#define NRUNE(b) ((b)->nrune<0? 1 : (b)->nrune)
#define NBYTE(b) strlen((char*)(b)->ptr)
+#if defined(__cplusplus)
+}
+#endif
+#endif