From 72632b769bfc7dd6cd57e972f648d9d4a1125d84 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 24 Oct 2026 06:34:07 +0000 Subject: use c++ --- malloclab-handout/mm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'malloclab-handout/mm.h') 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 +#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 + -- cgit v1.3.1-4-g156e