2010-01-11 Miguel de Icaza <miguel@novell.com>
[mono.git] / mono / utils / valgrind.h
index 4b6efe44b3f63f43879bc792995365886c18c3b0..a967f9dfc0da921a5b09683e5276fbb41b3914af 100644 (file)
@@ -73,6 +73,8 @@
 #ifndef __VALGRIND_H
 #define __VALGRIND_H
 
+#ifdef __GNUC__
+
 #include <stdarg.h>
 
 /* Nb: this file might be included in a file compiled with -ansi.  So
@@ -4020,4 +4022,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
 #undef PLAT_ppc32_aix5
 #undef PLAT_ppc64_aix5
 
+#else /* __GNUC__ */
+#define RUNNING_ON_VALGRIND 0
+#endif
 #endif   /* __VALGRIND_H */