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
@ -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…
Reference in New Issue
Block a user