From: Paul Reimer Date: Wed, 6 Dec 2017 17:09:40 +0000 (-0800) Subject: Add #include guards and __cplusplus guards to esp_debug.h X-Git-Tag: v3.0~91^2~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8388e1be54eaa188552e465d29f3e183b2034380;p=esp-idf Add #include guards and __cplusplus guards to esp_debug.h Merges https://github.com/espressif/esp-idf/pull/1358 --- diff --git a/components/mbedtls/port/include/mbedtls/esp_debug.h b/components/mbedtls/port/include/mbedtls/esp_debug.h index bf39cc73ba..8e23a5ea32 100644 --- a/components/mbedtls/port/include/mbedtls/esp_debug.h +++ b/components/mbedtls/port/include/mbedtls/esp_debug.h @@ -11,6 +11,12 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +#ifndef _ESP_DEBUG_H_ +#define _ESP_DEBUG_H_ + +#ifdef __cplusplus +extern "C" { +#endif #include "sdkconfig.h" #ifdef CONFIG_MBEDTLS_DEBUG @@ -43,3 +49,9 @@ void mbedtls_esp_disable_debug_log(mbedtls_ssl_config *conf); #endif + +#ifdef __cplusplus +} +#endif + +#endif /* __ESP_DEBUG_H__ */