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:
Mike Hommey 2012-04-30 15:15:15 +02:00 committed by Jason Evans
parent 1b523da21c
commit 7bfecf412d

View File

@ -841,10 +841,7 @@ if test "x$enable_valgrind" = "x1" ; then
#include <valgrind/valgrind.h> #include <valgrind/valgrind.h>
#include <valgrind/memcheck.h> #include <valgrind/memcheck.h>
#if defined(__VALGRIND_MAJOR__) && defined(__VALGRIND_MINOR__) \ #if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
&& (__VALGRIND_MAJOR__ > 3 || (__VALGRIND_MAJOR__ == 3 && \
__VALGRIND_MINOR__ >= 6))
#else
# error "Incompatible Valgrind version" # error "Incompatible Valgrind version"
#endif #endif
], [], [je_cv_valgrind]) ], [], [je_cv_valgrind])