Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Mar 31, 2024
1 parent 655ab79 commit 2e75c21
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions cores/esp8266/stdlib_noniso.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ char* ulltoa (unsigned long long val, char* str, int slen, unsigned int radix);

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

void reverse(char* begin, char* end);

const char* strrstr(const char*__restrict p_pcString,
const char*__restrict p_pcPattern);

Expand Down
3 changes: 0 additions & 3 deletions tests/host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ FLAGS += -fstack-protector-all
FLAGS += -DHTTPCLIENT_1_1_COMPATIBLE=0
FLAGS += -DLWIP_IPV6=0
FLAGS += -DHOST_MOCK=1
FLAGS += -DHAVE_STRLCPY
FLAGS += -DHAVE_STRLCAT
FLAGS += -DHAVE_NONISO
FLAGS += -DNONOSDK221=1
FLAGS += -DF_CPU=80000000
FLAGS += $(MKFLAGS)
Expand Down
1 change: 1 addition & 0 deletions tests/host/common/mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#define D7 7
#define D8 8

#include <stdlib.h>
#include <stddef.h>

#ifndef HAVE_NONISO
Expand Down
7 changes: 6 additions & 1 deletion tests/host/common/noniso.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
#include <stdbool.h>
#include <stdint.h>
#include <math.h>

#ifndef HAVE_NONISO

#include "stdlib_noniso.h"

void reverse(char* begin, char* end)
static void reverse(char* begin, char* end)
{
char* is = begin;
char* ie = end - 1;
Expand Down Expand Up @@ -101,3 +104,5 @@ double atof(const char* s)
char* tmp;
return strtod(s, &tmp);
}

#endif

0 comments on commit 2e75c21

Please sign in to comment.