Skip to content

Commit 7f6b762

Browse files
kv2019inashif
authored andcommitted
lib/os: winstream: properly include string.h for memcpy
If system memcpy() is used, assert.h must be included. Fixes a build warning on undeclared use of memcpy. Signed-off-by: Kai Vehmanen <[email protected]>
1 parent bd46470 commit 7f6b762

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/os/winstream.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# define MEMCPY(dst, src, n) \
1414
do { for (int i = 0; i < (n); i++) { (dst)[i] = (src)[i]; } } while (0)
1515
#else
16+
# include <string.h>
1617
# define MEMCPY memcpy
1718
#endif
1819

0 commit comments

Comments
 (0)