ext/redcarpet/stack.h in redcarpet-2.1.1 vs ext/redcarpet/stack.h in redcarpet-2.2.0
- old
+ new
@@ -1,10 +1,14 @@
#ifndef STACK_H__
#define STACK_H__
#include <stdlib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct stack {
void **item;
size_t size;
size_t asize;
};
@@ -15,7 +19,11 @@
int stack_push(struct stack *, void *);
void *stack_pop(struct stack *);
void *stack_top(struct stack *);
+
+#ifdef __cplusplus
+}
+#endif
#endif