From: Dirk Mueller Date: Wed, 31 Dec 2003 14:32:23 +0000 (+0000) Subject: mark the braced expression as C(++) extension X-Git-Tag: svn/VALGRIND_2_1_1~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3076b4eab95062f33e3034ab0c0a5f77bdeb887;p=thirdparty%2Fvalgrind.git mark the braced expression as C(++) extension git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2152 --- diff --git a/include/valgrind.h b/include/valgrind.h index 15399df3d1..535e3cc44c 100644 --- a/include/valgrind.h +++ b/include/valgrind.h @@ -169,10 +169,13 @@ typedef VG_USERREQ__PRINTF_BACKTRACE = 0x1402, } Vg_ClientRequest; +#ifndef __GNUC__ +#define __extension__ +#endif /* Returns 1 if running on Valgrind, 0 if running on the real CPU. Currently implemented but untested. */ -#define RUNNING_ON_VALGRIND \ +#define RUNNING_ON_VALGRIND __extension__ \ ({unsigned int _qzz_res; \ VALGRIND_MAGIC_SEQUENCE(_qzz_res, 0 /* returned if not */, \ VG_USERREQ__RUNNING_ON_VALGRIND, \