Sfoglia il codice sorgente

fix complie warnings

chinky 3 anni fa
parent
commit
8af41f44c4
2 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 0 4
      inc/webclient.h
  2. 2 0
      src/webclient_file.c

+ 0 - 4
inc/webclient.h

@@ -73,10 +73,6 @@ extern "C" {
 #define web_strdup                      rt_strdup
 #define web_strdup                      rt_strdup
 #endif
 #endif
 
 
-#ifndef web_strndup
-#define web_strndup                     rt_strndup
-#endif
-
 #define WEBCLIENT_SW_VERSION           "2.3.0"
 #define WEBCLIENT_SW_VERSION           "2.3.0"
 #define WEBCLIENT_SW_VERSION_NUM       0x20300
 #define WEBCLIENT_SW_VERSION_NUM       0x20300
 
 

+ 2 - 0
src/webclient_file.c

@@ -10,6 +10,8 @@
 
 
 #include <stdint.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 
 
 #include <rtthread.h>
 #include <rtthread.h>
 #include <webclient.h>
 #include <webclient.h>