diff options
author | Freddie Chopin <freddie.chopin@gmail.com> | 2018-07-13 10:34:49 +0300 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2018-07-13 10:34:49 +0300 |
commit | 577d777c20095b6030a3e0227d144081d5c4fe5c (patch) | |
tree | 2ed1674baf2315f8cde7798a2379bf6bd3840b6b /lfs.h | |
parent | c72d25203c1c1de8ffee62915cde07899edf73a6 (diff) |
Add C++ guards to public headers
Fixes #53
Fixes #32
Diffstat (limited to 'lfs.h')
-rw-r--r-- | lfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |