aboutsummaryrefslogtreecommitdiffstats
path: root/memcheck/memcheck.h
diff options
context:
space:
mode:
Diffstat (limited to 'memcheck/memcheck.h')
-rw-r--r--memcheck/memcheck.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/memcheck/memcheck.h b/memcheck/memcheck.h
index a7761a9..a9a6422 100644
--- a/memcheck/memcheck.h
+++ b/memcheck/memcheck.h
@@ -18,6 +18,12 @@
#ifndef QEMU_MEMCHECK_MEMCHECK_H
#define QEMU_MEMCHECK_MEMCHECK_H
+/* This file should compile iff qemu is built with memory checking
+ * configuration turned on. */
+#ifndef CONFIG_MEMCHECK
+#error CONFIG_MEMCHECK is not defined.
+#endif // CONFIG_MEMCHECK
+
#include "memcheck_common.h"
#ifdef __cplusplus