Skip to content

Commit ce6d4e6

Browse files
committed
Mock - optionally hide locally implemented funcs
1 parent d7c50f7 commit ce6d4e6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/host/common/mock.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,20 @@
5757

5858
#include <stddef.h>
5959

60+
#ifndef HAVE_NONISO
61+
#include <stdlib_noniso.h>
62+
#endif
63+
6064
#ifdef __cplusplus
6165
extern "C"
6266
{
6367
#endif
64-
// TODO: #include <stdlib_noniso.h> ?
65-
char* itoa(int val, char* s, int radix);
66-
char* ltoa(long val, char* s, int radix);
67-
68+
#ifndef HAVE_STRLCAT
6869
size_t strlcat(char* dst, const char* src, size_t size);
70+
#endif
71+
#ifndef HAVE_STRLCPY
6972
size_t strlcpy(char* dst, const char* src, size_t size);
70-
73+
#endif
7174
#ifdef __cplusplus
7275
}
7376
#endif

0 commit comments

Comments
 (0)