esp_netif: Fix -Wundef issues with esp_netif.h

Partially addresses https://github.com/espressif/esp-idf/pull/5179
This commit is contained in:
Scott Shawcroft 2020-07-28 18:20:30 -07:00 committed by David Cermak
parent f010729e74
commit 94ce8444fc
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
@ -14,7 +14,7 @@
#include "esp_netif_types.h" #include "esp_netif_types.h"
#include "esp_netif_defaults.h" #include "esp_netif_defaults.h"
#if CONFIG_ETH_ENABLED #ifdef CONFIG_ETH_ENABLED
#include "esp_eth_netif_glue.h" #include "esp_eth_netif_glue.h"
#endif #endif
@ -22,7 +22,7 @@
// Note: tcpip_adapter legacy API has to be included by default to provide full compatibility // Note: tcpip_adapter legacy API has to be included by default to provide full compatibility
// for applications that used tcpip_adapter API without explicit inclusion of tcpip_adapter.h // for applications that used tcpip_adapter API without explicit inclusion of tcpip_adapter.h
// //
#if CONFIG_ESP_NETIF_TCPIP_ADAPTER_COMPATIBLE_LAYER #ifdef CONFIG_ESP_NETIF_TCPIP_ADAPTER_COMPATIBLE_LAYER
#define _ESP_NETIF_SUPPRESS_LEGACY_WARNING_ #define _ESP_NETIF_SUPPRESS_LEGACY_WARNING_
#include "tcpip_adapter.h" #include "tcpip_adapter.h"
#undef _ESP_NETIF_SUPPRESS_LEGACY_WARNING_ #undef _ESP_NETIF_SUPPRESS_LEGACY_WARNING_

View File

@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
@ -213,7 +213,7 @@ extern const esp_netif_inherent_config_t _g_esp_netif_inherent_slip_config;
extern const esp_netif_ip_info_t _g_esp_netif_soft_ap_ip; extern const esp_netif_ip_info_t _g_esp_netif_soft_ap_ip;
#endif #endif
#if CONFIG_OPENTHREAD_ENABLED #ifdef CONFIG_OPENTHREAD_ENABLED
/** /**
* @brief Default configuration reference of SLIP client * @brief Default configuration reference of SLIP client
*/ */