From 577d777c20095b6030a3e0227d144081d5c4fe5c Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Fri, 13 Jul 2018 09:34:49 +0200 Subject: Add C++ guards to public headers Fixes #53 Fixes #32 --- lfs_util.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lfs_util.h') diff --git a/lfs_util.h b/lfs_util.h index d61c545..b2dc237 100644 --- a/lfs_util.h +++ b/lfs_util.h @@ -34,6 +34,11 @@ #include #endif +#ifdef __cplusplus +extern "C" +{ +#endif + // Macros, may be replaced by system specific wrappers. Arguments to these // macros must not have side-effects as the macros can be removed for a smaller @@ -173,5 +178,9 @@ static inline void lfs_free(void *p) { } +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif #endif -- cgit v1.2.3