Add C++ guards to public headers

Fixes #53
Fixes #32
This commit is contained in:
Freddie Chopin
2018-07-13 09:34:49 +02:00
parent c72d25203c
commit 577d777c20
3 changed files with 27 additions and 0 deletions

View File

@@ -10,6 +10,11 @@
#include "lfs.h"
#include "lfs_util.h"
#ifdef __cplusplus
extern "C"
{
#endif
// Config options
#ifndef LFS_EMUBD_READ_SIZE
@@ -75,4 +80,8 @@ int lfs_emubd_erase(const struct lfs_config *cfg, lfs_block_t block);
int lfs_emubd_sync(const struct lfs_config *cfg);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif