]> granicus.if.org Git - esp-idf/commitdiff
Add #include guards and __cplusplus guards to esp_debug.h
authorPaul Reimer <paul@p-rimes.net>
Wed, 6 Dec 2017 17:09:40 +0000 (09:09 -0800)
committerAngus Gratton <gus@projectgus.com>
Wed, 6 Dec 2017 23:25:57 +0000 (10:25 +1100)
Merges https://github.com/espressif/esp-idf/pull/1358

components/mbedtls/port/include/mbedtls/esp_debug.h

index bf39cc73ba67e5d17cb08948a2fdc4cb034ce91d..8e23a5ea3228d130a72d2ef243d4cd6ec4a27289 100644 (file)
 // 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__ */