From 4a9d4587b735068cc9b5806a043494c78f4bfb9b Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 4 Oct 2017 10:55:54 +1100 Subject: [PATCH] vfs: Add C++ guards to esp_vfs_dev.h Closes https://github.com/espressif/esp-idf/issues/1069 --- components/vfs/include/esp_vfs_dev.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/components/vfs/include/esp_vfs_dev.h b/components/vfs/include/esp_vfs_dev.h index b51527fcf..b330b4c56 100644 --- a/components/vfs/include/esp_vfs_dev.h +++ b/components/vfs/include/esp_vfs_dev.h @@ -12,11 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef __ESP_VFS_DEV_H__ -#define __ESP_VFS_DEV_H__ +#pragma once #include "esp_vfs.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Line ending settings */ @@ -81,4 +84,6 @@ void esp_vfs_dev_uart_use_nonblocking(int uart_num); */ void esp_vfs_dev_uart_use_driver(int uart_num); -#endif //__ESP_VFS_DEV_H__ +#ifdef __cplusplus +} +#endif