aboutsummaryrefslogtreecommitdiff
path: root/malloclab-handout/mm.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-24 06:34:07 +0000
committer_ov4 <ov4@ov4.org>2026-10-24 06:34:07 +0000
commit72632b769bfc7dd6cd57e972f648d9d4a1125d84 (patch)
tree276a3d717f6090ddf28eb8625869a702c811be13 /malloclab-handout/mm.h
parentb8d8146555a7a3e1c684f5828fb086b417edd507 (diff)
use c++
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
+