Fix memcpy undef (#7675)
authorJan Vorlicek <janvorli@microsoft.com>
Tue, 18 Oct 2016 01:53:27 +0000 (03:53 +0200)
committerJan Kotas <jkotas@microsoft.com>
Tue, 18 Oct 2016 01:53:27 +0000 (18:53 -0700)
This change fixes a memcpy #undef in the palinternal.h. It was undefed only for
non-debug builds, but it needs to be undefed for debug build as well. The non-debug
undef covers the case where memcpy is defined as DUMMY_memcpy, but doesn't cover
the debug case where memcpy is defined as PAL_memcpy.

src/pal/src/include/pal/palinternal.h

index 823e3db..88d47bb 100644 (file)
@@ -348,9 +348,7 @@ function_name() to call the system's implementation
 #undef atexit
 #undef div
 #undef div_t
-#if !defined(_DEBUG)
 #undef memcpy
-#endif //!defined(_DEBUG)
 #undef memcmp
 #undef memset
 #undef memmove