summaryrefslogtreecommitdiff
path: root/lib/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stack.h')
-rw-r--r--lib/stack.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/stack.h b/lib/stack.h
index a354ab5..8d25aff 100644
--- a/lib/stack.h
+++ b/lib/stack.h
@@ -8,6 +8,11 @@
#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct ll_tag {
v_t x;
struct ll_tag *next;
@@ -24,3 +29,7 @@ void stack_push_d(dll_t **q, double x);
v_t stack_pop(ll_t **q);
double stack_pop_d(dll_t **q);
+#ifdef __cplusplus
+}
+#endif
+