]> granicus.if.org Git - esp-idf/commitdiff
nvs_flash: Fix compilation of host testcases when g++-8.x is used.
authorSagar Bijwe <sagar@espressif.com>
Wed, 14 Nov 2018 12:40:24 +0000 (18:10 +0530)
committerbot <bot@espressif.com>
Fri, 7 Dec 2018 09:40:45 +0000 (09:40 +0000)
When std::bind is used, it requires inclusion of <functional> header.
This was not mandatory with earlier versions of g++ (4.x), may be because they
had experimental support for c++11.

components/nvs_flash/test_nvs_host/test_spi_flash_emulation.cpp

index 0c77aa96693aceb9ad4b999e6c5ad677ab8037b7..28ee377d3797870918bfaa3c697cb1ebcea7b767 100644 (file)
@@ -14,6 +14,7 @@
 #include "catch.hpp"
 #include "esp_spi_flash.h"
 #include "spi_flash_emulation.h"
+#include <functional>
 
 using namespace std;