diff options
author | HolyWu <holywu@gmail.com> | 2018-04-17 11:40:49 +0800 |
---|---|---|
committer | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2018-04-29 21:51:42 -0700 |
commit | ebc85cca9083241ae360e0c68e2f1d7538001fa3 (patch) | |
tree | bb1a6e60d4c3baaf36ad148facab592fa54d1767 /src/windows/gperftools/tcmalloc.h | |
parent | a3badd6d2127c161f6fbad853fccd6e8064fcde7 (diff) | |
download | gperftools-ebc85cca9083241ae360e0c68e2f1d7538001fa3.tar.gz |
Enable aligned new/delete declarations on Windows when applicable
Diffstat (limited to 'src/windows/gperftools/tcmalloc.h')
-rw-r--r-- | src/windows/gperftools/tcmalloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/gperftools/tcmalloc.h b/src/windows/gperftools/tcmalloc.h index 1ff3074..b9c71e9 100644 --- a/src/windows/gperftools/tcmalloc.h +++ b/src/windows/gperftools/tcmalloc.h @@ -126,7 +126,7 @@ extern "C" { PERFTOOLS_DLL_DECL void tc_deletearray_nothrow(void* p, const std::nothrow_t&) PERFTOOLS_NOTHROW; -#if 0 && __cplusplus >= 201703L +#if defined(__cpp_aligned_new) || (defined(_MSVC_LANG) && _MSVC_LANG > 201402L) PERFTOOLS_DLL_DECL void* tc_new_aligned(size_t size, std::align_val_t al); PERFTOOLS_DLL_DECL void* tc_new_aligned_nothrow(size_t size, std::align_val_t al, const std::nothrow_t&) PERFTOOLS_NOTHROW; |