mark the braced expression as C(++) extension
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2152 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/valgrind.h b/include/valgrind.h
index 15399df..535e3cc 100644
--- a/include/valgrind.h
+++ b/include/valgrind.h
@@ -169,10 +169,13 @@
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, \