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 /emubd | |
parent | c72d25203c1c1de8ffee62915cde07899edf73a6 (diff) |
Add C++ guards to public headers
Fixes #53
Fixes #32
Diffstat (limited to 'emubd')
-rw-r--r-- | emubd/lfs_emubd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/emubd/lfs_emubd.h b/emubd/lfs_emubd.h index 85718de..0fd4387 100644 --- a/emubd/lfs_emubd.h +++ b/emubd/lfs_emubd.h @@ -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 |