1
0
forked from 0ad/0ad

Only try to use valgrind stuff if --with-valgrind is given to update-workspaces.sh

This was SVN commit r7018.
This commit is contained in:
Simon Brenner 2009-07-18 02:06:42 +00:00
parent dc3ac668e0
commit 7a942d29e7

View File

@ -48,7 +48,7 @@
#include <boost/preprocessor/punctuation/comma_if.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
#ifdef USE_VALGRIND
# include <valgrind/valgrind.h>
#endif
@ -513,7 +513,7 @@ namespace
wxLogWarning(_T("%s"), logMessage.c_str());
else
wxLogError(_T("%s"), logMessage.c_str());
#if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
#ifdef USE_VALGRIND
// When running under Valgrind, print more information in the error message
VALGRIND_PRINTF_BACKTRACE("->");
#endif