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.
pull/13684/head
Martin Kojtal 2020-09-30 08:49:48 +01:00
parent 05babec988
commit ccc5c8528b
1 changed files with 1 additions and 1 deletions

View File

@ -18,9 +18,9 @@
#include <new> #include <new>
#include <string.h> #include <string.h>
#include "mbed_error.h" #include "mbed_error.h"
#if MBED_CONF_NANOSTACK_HAL_USE_KVSTORE == 1
#include "kvstore_global_api.h" #include "kvstore_global_api.h"
#include "kv_config.h" #include "kv_config.h"
#if MBED_CONF_NANOSTACK_HAL_USE_KVSTORE == 1
#include "ns_file_system.h" #include "ns_file_system.h"
#endif #endif