Sunxin 7 лет назад
Родитель
Сommit
596e3f8a5e
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      inc/webclient.h

+ 8 - 0
inc/webclient.h

@@ -23,6 +23,10 @@
 #include <tls_client.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif   
+
 #undef DBG_SECTION_NAME
 #undef DBG_LEVEL
 #undef DBG_COLOR
@@ -147,4 +151,8 @@ int webclient_get_file(const char *URI, const char *filename);
 int webclient_post_file(const char *URI, const char *filename, const char *form_data);
 #endif
 
+#ifdef  __cplusplus
+    }
+#endif
+
 #endif