Quellcode durchsuchen

enable -std=gnu11 for http dir

devsaurus vor 8 Jahren
Ursprung
Commit
19fda87e33
3 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 1 0
      app/http/Makefile
  2. 1 0
      app/include/rom.h
  3. 1 0
      sdk-overrides/include/osapi.h

+ 1 - 0
app/http/Makefile

@@ -15,6 +15,7 @@ ifndef PDIR
 GEN_LIBS = libhttp.a
 endif
 
+STD_CFLAGS=-std=gnu11 -Wimplicit
 
 #############################################################
 # Configuration i.e. compile options etc.

+ 1 - 0
app/include/rom.h

@@ -122,6 +122,7 @@ char *ets_strcpy (char *dst, const char *src);
 size_t ets_strlen (const char *s);
 int ets_strcmp (const char *s1, const char *s2);
 int ets_strncmp (const char *s1, const char *s2, size_t n);
+char *ets_strstr(const char *haystack, const char *needle);
 
 void ets_delay_us (uint32_t us);
 

+ 1 - 0
sdk-overrides/include/osapi.h

@@ -4,6 +4,7 @@
 #include "rom.h"
 void ets_timer_arm_new (ETSTimer *a, int b, int c, int isMstimer);
 
+int atoi(const char *nptr);
 int os_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
 int os_printf_plus(const char *format, ...)  __attribute__ ((format (printf, 1, 2)));