]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mark the braced expression as C(++) extension
authorDirk Mueller <dmuell@gmx.net>
Wed, 31 Dec 2003 14:32:23 +0000 (14:32 +0000)
committerDirk Mueller <dmuell@gmx.net>
Wed, 31 Dec 2003 14:32:23 +0000 (14:32 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2152

include/valgrind.h

index 15399df3d1e482f83cf8f287b89f98faaf17e42f..535e3cc44cb23eadebd7503c58f0be25e03c6f3e 100644 (file)
@@ -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,       \