> Reading more carefully, it seems the #undef block at the bottom of a
> recent svn's valgrind.h doesn't match the similar undef at the top - is
> that intended ? [seems to miss eg. the s390 piece].
oh, our snafu. will fix.
> Caolan - what do you think of doing:
> [...]
> +if (
On Fri, 2011-06-24 at 11:30 +0100, Michael Meeks wrote:
>
> -if (getenv("G_SLICE") != NULL)
> +if (RUNNING_ON_VALGRIND)
> +{
> +putenv ("G_SLICE=1");
> +fprintf(stderr, "LibreOffice: running under valgrind detected.\n");
> +alloc_mode = AMode_SYSTEM;
> +}
>
Hi Julian,
On Thu, 2011-06-23 at 11:59 +0200, Julian Seward wrote:
> Oh, I think I missed answering the simple question here. Thusly:
Ah indeed :-) and I missed that in the headers.
> #include "valgrind.h"
>
> bool running_under_valgrind (void)
> {
> return (RUNNING_ON_VALGR