Skip to content

Commit

Permalink
fs/nvs: improve C++ compatibility
Browse files Browse the repository at this point in the history
This patch moves header inclusion outside the `extern "C"` block.

Signed-off-by: Markus Fuchs <[email protected]>
  • Loading branch information
mrfuchs authored and carlescufi committed Aug 5, 2019
1 parent 77db273 commit 33535a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/fs/nvs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
#ifndef ZEPHYR_INCLUDE_FS_NVS_H_
#define ZEPHYR_INCLUDE_FS_NVS_H_

#include <sys/types.h>
#include <kernel.h>
#include <device.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <sys/types.h>
#include <kernel.h>
#include <device.h>
/**
* @brief Non-volatile Storage
* @defgroup nvs Non-volatile Storage
Expand Down

0 comments on commit 33535a2

Please sign in to comment.