Skip to content

Commit 2e75c21

Browse files
committed
try again
1 parent 655ab79 commit 2e75c21

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

cores/esp8266/stdlib_noniso.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ char* ulltoa (unsigned long long val, char* str, int slen, unsigned int radix);
4646

4747
char* dtostrf (double val, signed char width, unsigned char prec, char *s);
4848

49-
void reverse(char* begin, char* end);
50-
5149
const char* strrstr(const char*__restrict p_pcString,
5250
const char*__restrict p_pcPattern);
5351

tests/host/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ FLAGS += -fstack-protector-all
194194
FLAGS += -DHTTPCLIENT_1_1_COMPATIBLE=0
195195
FLAGS += -DLWIP_IPV6=0
196196
FLAGS += -DHOST_MOCK=1
197-
FLAGS += -DHAVE_STRLCPY
198-
FLAGS += -DHAVE_STRLCAT
199-
FLAGS += -DHAVE_NONISO
200197
FLAGS += -DNONOSDK221=1
201198
FLAGS += -DF_CPU=80000000
202199
FLAGS += $(MKFLAGS)

tests/host/common/mock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#define D7 7
5656
#define D8 8
5757

58+
#include <stdlib.h>
5859
#include <stddef.h>
5960

6061
#ifndef HAVE_NONISO

tests/host/common/noniso.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
#include <stdbool.h>
1919
#include <stdint.h>
2020
#include <math.h>
21+
22+
#ifndef HAVE_NONISO
23+
2124
#include "stdlib_noniso.h"
2225

23-
void reverse(char* begin, char* end)
26+
static void reverse(char* begin, char* end)
2427
{
2528
char* is = begin;
2629
char* ie = end - 1;
@@ -101,3 +104,5 @@ double atof(const char* s)
101104
char* tmp;
102105
return strtod(s, &tmp);
103106
}
107+
108+
#endif

0 commit comments

Comments
 (0)