Guard use of _debug_memset with __DEBUG_ALLOC__

This is engaged with IBM XLC's -qheapdebug option
This commit is contained in:
Jeffrey Walton 2018-11-21 21:04:20 -05:00
parent e26b1a0b2a
commit 1e8ac49b49
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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