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:
parent
bd46470167
commit
7f6b762a73
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue