Skip to content

Commit 386a0f8

Browse files
committed
order?
1 parent 2e75c21 commit 386a0f8

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

tests/host/common/mock.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,18 @@
5555
#define D7 7
5656
#define D8 8
5757

58-
#include <stdlib.h>
5958
#include <stddef.h>
59+
#include <stdlib.h>
60+
#include <string.h>
6061

61-
#ifndef HAVE_NONISO
6262
#include <stdlib_noniso.h>
63-
#endif
6463

6564
#ifdef __cplusplus
6665
extern "C"
6766
{
6867
#endif
69-
#ifndef HAVE_STRLCAT
7068
size_t strlcat(char* dst, const char* src, size_t size);
71-
#endif
72-
#ifndef HAVE_STRLCPY
7369
size_t strlcpy(char* dst, const char* src, size_t size);
74-
#endif
7570
#ifdef __cplusplus
7671
}
7772
#endif

tests/host/common/noniso.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include <stdint.h>
2020
#include <math.h>
2121

22-
#ifndef HAVE_NONISO
23-
2422
#include "stdlib_noniso.h"
2523

2624
static void reverse(char* begin, char* end)
@@ -104,5 +102,3 @@ double atof(const char* s)
104102
char* tmp;
105103
return strtod(s, &tmp);
106104
}
107-
108-
#endif

0 commit comments

Comments
 (0)