mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Make JEMALLOC_CXX_THROW definition compatible with newer C++ versions
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
#define MALLCTL_ARENAS_DESTROYED 4097
|
#define MALLCTL_ARENAS_DESTROYED 4097
|
||||||
|
|
||||||
#if defined(__cplusplus) && defined(JEMALLOC_USE_CXX_THROW)
|
#if defined(__cplusplus) && defined(JEMALLOC_USE_CXX_THROW)
|
||||||
# define JEMALLOC_CXX_THROW throw()
|
# define JEMALLOC_CXX_THROW noexcept (true)
|
||||||
#else
|
#else
|
||||||
# define JEMALLOC_CXX_THROW
|
# define JEMALLOC_CXX_THROW
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user