Kaynağa Gözat

Merge pull request #29 from SunXofRTT/sunxin

添加C++支持
朱天龙 (Armink) 7 yıl önce
ebeveyn
işleme
48b8551085
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  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