summaryrefslogtreecommitdiff
path: root/include/my_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_alloc.h')
-rw-r--r--include/my_alloc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/my_alloc.h b/include/my_alloc.h
index dbf104bda9a..4b1ffd3d444 100644
--- a/include/my_alloc.h
+++ b/include/my_alloc.h
@@ -23,7 +23,9 @@
#define ALLOC_MAX_BLOCK_TO_DROP 4096
#define ALLOC_MAX_BLOCK_USAGE_BEFORE_DROP 10
-C_MODE_START
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef struct st_used_mem
{ /* struct for once_alloc (block) */
@@ -51,6 +53,8 @@ typedef struct st_mem_root
void (*error_handler)(void);
} MEM_ROOT;
-C_MODE_END
+#ifdef __cplusplus
+}
+#endif
#endif