aboutsummaryrefslogtreecommitdiffstats
path: root/memcheck/memcheck_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'memcheck/memcheck_util.h')
-rw-r--r--memcheck/memcheck_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/memcheck/memcheck_util.h b/memcheck/memcheck_util.h
index 2a9907e..b75ee53 100644
--- a/memcheck/memcheck_util.h
+++ b/memcheck/memcheck_util.h
@@ -17,6 +17,12 @@
#ifndef QEMU_MEMCHECK_MEMCHECK_UTIL_H
#define QEMU_MEMCHECK_MEMCHECK_UTIL_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"
#include "elff/elff_api.h"