From 1e8ac49b4943e7272c186b4f81252daf6ce24979 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 21 Nov 2018 21:04:20 -0500 Subject: [PATCH] Guard use of _debug_memset with __DEBUG_ALLOC__ This is engaged with IBM XLC's -qheapdebug option --- stdcpp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stdcpp.h b/stdcpp.h index 838d1766..a13fd25b 100644 --- a/stdcpp.h +++ b/stdcpp.h @@ -34,10 +34,12 @@ namespace std { // workaround needed for IBM XLC and debug heaps on AIX #if defined(_AIX) && (defined(__xlc__) || defined(__xlC__) || defined(__ibmxl__)) +# if defined(__DEBUG_ALLOC__) namespace std { - using ::_debug_memset; - using ::_debug_memcpy; + using ::_debug_memset; + using ::_debug_memcpy; } +# endif #endif // make_unchecked_array_iterator