From efb6f0bdb49fe8bacdcc43f0e1cbda43e650de5c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 7 Nov 2014 17:29:33 +0100 Subject: [PATCH] httpd.h: added C++ guards --- apps/httpserver_raw/httpd.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/httpserver_raw/httpd.h b/apps/httpserver_raw/httpd.h index be7e3a3..3962f72 100644 --- a/apps/httpserver_raw/httpd.h +++ b/apps/httpserver_raw/httpd.h @@ -40,6 +40,9 @@ #include "lwip/err.h" #include "lwip/pbuf.h" +#ifdef __cplusplus +extern "C" { +#endif /** Set this to 1 to support CGI */ #ifndef LWIP_HTTPD_CGI @@ -233,4 +236,9 @@ void httpd_post_data_recved(void *connection, u16_t recved_len); void httpd_init(void); + +#ifdef __cplusplus +} +#endif + #endif /* LWIP_HTTPD_H */