From bee398f860860dd669f05f682d4ba0377cba3467 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Sat, 28 Dec 2019 14:18:52 -0500 Subject: [PATCH] replace __BEGIN_DECLS with extern "C" --- h_malloc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/h_malloc.h b/h_malloc.h index 395329d..8b765b1 100644 --- a/h_malloc.h +++ b/h_malloc.h @@ -5,7 +5,9 @@ #include -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif #ifndef H_MALLOC_PREFIX #define h_malloc malloc @@ -116,6 +118,8 @@ size_t h_malloc_object_size_fast(void *ptr); // passed size matches the allocated size. void h_free_sized(void *ptr, size_t expected_size); -__END_DECLS +#ifdef __cplusplus +} +#endif #endif