From: Julian Seward Date: Wed, 3 Mar 2010 22:57:47 +0000 (+0000) Subject: Make the version number available in the valgrind.h headers, so X-Git-Tag: svn/VALGRIND_3_6_0~363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfdf90ef2700412b2bb4e2c849c11470c1b15abf;p=thirdparty%2Fvalgrind.git Make the version number available in the valgrind.h headers, so clients can do version-specific client requests. This is something we should have done long ago. Still needs a way to regtest this, to check that the embedded version matches what's stated in configure.in. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11061 --- diff --git a/include/valgrind.h b/include/valgrind.h index ca10b1a0dd..65993fbb32 100644 --- a/include/valgrind.h +++ b/include/valgrind.h @@ -73,6 +73,17 @@ #ifndef __VALGRIND_H #define __VALGRIND_H + +/* ------------------------------------------------------------------ */ +/* VERSION NUMBER OF VALGRIND */ +/* ------------------------------------------------------------------ */ + +/* Specify Valgrind's version number, so that user code can + conditionally compile based on our version number. */ +#define __VALGRIND__ 3 +#define __VALGRIND_MINOR__ 6 + + #include /* Nb: this file might be included in a file compiled with -ansi. So