Skip to content

Commit ccc5c85

Browse files
committed
nanostack: fix inclusion of kvstore
Protect kvstore headers as well as they should not be included if kvstore is not enabled in nanostack file system.
1 parent 05babec commit ccc5c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectivity/nanostack/nanostack-hal-mbed-cmsis-rtos/ns_file_system_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#include <new>
1919
#include <string.h>
2020
#include "mbed_error.h"
21+
#if MBED_CONF_NANOSTACK_HAL_USE_KVSTORE == 1
2122
#include "kvstore_global_api.h"
2223
#include "kv_config.h"
23-
#if MBED_CONF_NANOSTACK_HAL_USE_KVSTORE == 1
2424
#include "ns_file_system.h"
2525
#endif
2626

0 commit comments

Comments
 (0)