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 <kai.vehmanen@linux.intel.com>
This commit is contained in:
Kai Vehmanen 2022-06-21 14:15:06 +03:00 committed by Anas Nashif
parent bd46470167
commit 7f6b762a73

View file

@ -13,6 +13,7 @@
# define MEMCPY(dst, src, n) \
do { for (int i = 0; i < (n); i++) { (dst)[i] = (src)[i]; } } while (0)
#else
# include <string.h>
# define MEMCPY memcpy
#endif