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
path: root/lfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'lfs.h')
-rw-r--r--lfs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lfs.h b/lfs.h
index 3683d32..1b1be19 100644
--- a/lfs.h
+++ b/lfs.h
@@ -10,6 +10,11 @@
#include <stdint.h>
#include <stdbool.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
/// Version info ///
@@ -460,4 +465,8 @@ int lfs_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data);
int lfs_deorphan(lfs_t *lfs);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif