Skip to content

Commit 15dc740

Browse files
committed
Move strlcat & strlcpy to __cplusplus
1 parent e01e93b commit 15dc740

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/host/common/mock.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,15 @@ extern "C" {
6262
// TODO: #include <stdlib_noniso.h> ?
6363
char* itoa (int val, char *s, int radix);
6464
char* ltoa (long val, char *s, int radix);
65-
#ifdef __cplusplus
66-
}
67-
#endif
65+
6866

6967
size_t strlcat(char *dst, const char *src, size_t size);
7068
size_t strlcpy(char *dst, const char *src, size_t size);
7169

70+
#ifdef __cplusplus
71+
}
72+
#endif
73+
7274
// exotic typedefs used in the sdk
7375

7476
#include <stdint.h>

0 commit comments

Comments
 (0)