Valgrind define is HAVE_VALGRIND_VALGRIND_H

This commit is contained in:
David Schleef 2010-08-23 18:20:23 -07:00
parent 7a722091b6
commit 3ef2688658

View file

@ -117,7 +117,7 @@
#include "gstutils.h"
#include "gstquark.h"
#include "gstsegment.h"
#ifdef HAVE_VALGRIND_H
#ifdef HAVE_VALGRIND_VALGRIND_H
# include <valgrind/valgrind.h>
#endif
#include <glib/gprintf.h> /* g_sprintf */
@ -281,7 +281,7 @@ _priv_gst_in_valgrind (void)
in_valgrind = GST_VG_UNCHECKED;
if (in_valgrind == GST_VG_UNCHECKED) {
#ifdef HAVE_VALGRIND_H
#ifdef HAVE_VALGRIND_VALGRIND_H
if (RUNNING_ON_VALGRIND) {
GST_CAT_INFO (GST_CAT_GST_INIT, "we're running inside valgrind");
printf ("GStreamer has detected that it is running inside valgrind.\n");