|
From: Mayank K. (mayankum) <may...@ci...> - 2015-06-15 05:47:35
|
I already tried that, but the error changes to:- > error: missing binary operator before token ( Trying to debug what the issue is. -----Original Message----- From: Philippe Waroquiers [mailto:phi...@sk...] Sent: Saturday, June 13, 2015 12:24 PM To: Mayank Kumar (mayankum) Cc: val...@li... Subject: Re: [Valgrind-users] Detecting if a process is running under valgrind On Fri, 2015-06-12 at 07:23 +0000, Mayank Kumar (mayankum) wrote: > Hi Users > I am running valgrind on windriver and trying to use > RUNNING_ON_VALGRIND macro to figure out if my process is running under > valgrind. > While compiling I get the error :- > > error: missing binary operator before token "__extension__" > > Is there a way to fix it . I am using gcc compiler 4.3.2 In valgrind.h, there is somewhere the following 3 lines: #if !defined(__GNUC__) # define __extension__ /* */ #endif You might try to copy the # define line just before including valgrind.h Philippe |