aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
commit9fad7027bc87b02a9276209762374a4b309a2a08 (patch)
treed7bf2db2b1d0ed23586726e36333f57571c10d7a
parent9442040891f239ae3d53982cffe4176012f3ef20 (diff)
Added C++ compatibility.
-rw-r--r--include/salis.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/salis.h b/include/salis.h
index a9e2d3d..ec9bff0 100644
--- a/include/salis.h
+++ b/include/salis.h
@@ -1,6 +1,10 @@
#ifndef SALIS_H
#define SALIS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h>
#include <types.h>
#include <instset.h>
@@ -19,4 +23,8 @@ sword s_getEpoch (void);
void s_cycle (void);
+#ifdef __cplusplus
+}
+#endif
+
#endif