Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreddie Chopin <freddie.chopin@gmail.com>2018-07-13 10:34:49 +0300
committerFreddie Chopin <freddie.chopin@gmail.com>2018-07-13 10:34:49 +0300
commit577d777c20095b6030a3e0227d144081d5c4fe5c (patch)
tree2ed1674baf2315f8cde7798a2379bf6bd3840b6b /lfs_util.h
parentc72d25203c1c1de8ffee62915cde07899edf73a6 (diff)
Add C++ guards to public headers
Fixes #53 Fixes #32
Diffstat (limited to 'lfs_util.h')
-rw-r--r--lfs_util.h9
1 files changed, 9 insertions, 0 deletions
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 <stdio.h>
#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