]> granicus.if.org Git - esp-idf/commitdiff
lwip/sntp: Added extern "C"
authorKerry Jones <kerry@iodrive.co.za>
Fri, 28 Jun 2019 06:19:11 +0000 (08:19 +0200)
committerKonstantin Kondrashov <konstantin@espressif.com>
Fri, 28 Jun 2019 06:51:28 +0000 (14:51 +0800)
so that sntp_set_time_sync_notification_cb can be used from c++

Signed-off-by: Konstantin Kondrashov <konstantin@espressif.com>
Merges: https://github.com/espressif/esp-idf/pull/3700

components/lwip/include/apps/sntp/sntp.h

index 418d3c70ed604bc25e5485e7549b453e6b2c6a6f..a94981b5d9cf751fc19f983ec39e3fe6e90df5b8 100644 (file)
 #ifndef __SNTP_H__
 #define __SNTP_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * The time update takes place in the sntp_sync_time() function.
  * The user has the ability to redefine this function in order
@@ -116,4 +120,8 @@ void sntp_set_sync_status(sntp_sync_status_t sync_status);
  */
 void sntp_set_time_sync_notification_cb(sntp_sync_time_cb_t callback);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // __SNTP_H__