summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index f0e017c..331c831 100644
--- a/src/main.h
+++ b/src/main.h
@@ -1,4 +1,18 @@
+#ifndef __MAIN_H
+#define __MAIN_H
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int done; /* When non-zero, this global means the user is done using this program. */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MAIN_H */