mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Check for VALGRIND_RESIZEINPLACE_BLOCK support
VALGRIND_RESIZEINPLACE_BLOCK was added in valgrind 3.7. Unfortunately, the __VALGRIND_MINOR__ macro still says 6 in 3.7 :(
This commit is contained in:
parent
1b523da21c
commit
7bfecf412d
1 changed files with 1 additions and 4 deletions
|
|
@ -841,10 +841,7 @@ if test "x$enable_valgrind" = "x1" ; then
|
|||
#include <valgrind/valgrind.h>
|
||||
#include <valgrind/memcheck.h>
|
||||
|
||||
#if defined(__VALGRIND_MAJOR__) && defined(__VALGRIND_MINOR__) \
|
||||
&& (__VALGRIND_MAJOR__ > 3 || (__VALGRIND_MAJOR__ == 3 && \
|
||||
__VALGRIND_MINOR__ >= 6))
|
||||
#else
|
||||
#if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
|
||||
# error "Incompatible Valgrind version"
|
||||
#endif
|
||||
], [], [je_cv_valgrind])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue