From dc9b6a29885984792cfd0768abcded2a12ca496a Mon Sep 17 00:00:00 2001 From: UncleRus Date: Sat, 17 Dec 2016 21:00:37 +0500 Subject: [PATCH] Fix #313 --- extras/rboot-ota/ota-tftp.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extras/rboot-ota/ota-tftp.h b/extras/rboot-ota/ota-tftp.h index 6be63aa..3e1d985 100644 --- a/extras/rboot-ota/ota-tftp.h +++ b/extras/rboot-ota/ota-tftp.h @@ -3,6 +3,10 @@ #include "lwip/err.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef void (*tftp_receive_cb)(size_t bytes_received); /* TFTP Server OTA Support @@ -52,4 +56,8 @@ err_t ota_tftp_download(const char *server, int port, const char *filename, #define TFTP_PORT 69 +#ifdef __cplusplus +} +#endif + #endif