aboutsummaryrefslogtreecommitdiff
path: root/malloclab-handout/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'malloclab-handout/mm.h')
-rw-r--r--malloclab-handout/mm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/malloclab-handout/mm.h b/malloclab-handout/mm.h
index d41eef7..7cd95f7 100644
--- a/malloclab-handout/mm.h
+++ b/malloclab-handout/mm.h
@@ -1,5 +1,9 @@
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int mm_init (void);
extern void *mm_malloc (size_t size);
extern void mm_free (void *ptr);
@@ -21,3 +25,7 @@ typedef struct {
extern team_t team;
+#ifdef __cplusplus
+}
+#endif
+