From 19fda87e33fde5e525484b758db725a22d5423dd Mon Sep 17 00:00:00 2001 From: devsaurus Date: Sat, 23 Jan 2016 22:41:41 +0100 Subject: [PATCH] enable -std=gnu11 for http dir --- app/http/Makefile | 1 + app/include/rom.h | 1 + sdk-overrides/include/osapi.h | 1 + 3 files changed, 3 insertions(+) diff --git a/app/http/Makefile b/app/http/Makefile index 66c9a7d1..4de124dd 100644 --- a/app/http/Makefile +++ b/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. diff --git a/app/include/rom.h b/app/include/rom.h index ffed887e..175bfcab 100644 --- a/app/include/rom.h +++ b/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); diff --git a/sdk-overrides/include/osapi.h b/sdk-overrides/include/osapi.h index 374fea83..0fe27242 100644 --- a/sdk-overrides/include/osapi.h +++ b/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)));