aboutsummaryrefslogtreecommitdiffstats
path: root/memcheck/memcheck_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'memcheck/memcheck_common.h')
-rw-r--r--memcheck/memcheck_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/memcheck/memcheck_common.h b/memcheck/memcheck_common.h
index e753094..e6d12db 100644
--- a/memcheck/memcheck_common.h
+++ b/memcheck/memcheck_common.h
@@ -18,6 +18,12 @@
#ifndef QEMU_MEMCHECK_MEMCHECK_COMMON_H
#define QEMU_MEMCHECK_MEMCHECK_COMMON_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 "qemu-common.h"
#include "cpu.h"