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





------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to