Fix build breakage with --disable-tui
[deliverable/binutils-gdb.git] / gdb / unittests / tui-selftests.c
index 3a5d34fe48cca13baf2ce50c0efe270845d3e3c7..95c12e3f5d21d58e94155ca1c3ed0878805a866f 100644 (file)
@@ -21,6 +21,8 @@
 #include "gdbsupport/selftest.h"
 #include "tui/tui-winsource.h"
 
+#ifdef TUI
+
 namespace selftests {
 namespace tui {
 
@@ -41,8 +43,12 @@ run_tests ()
 } /* namespace tui*/
 } /* namespace selftests */
 
+#endif /* TUI */
+
 void
 _initialize_tui_selftest ()
 {
+#ifdef TUI
   selftests::register_test ("tui", selftests::tui::run_tests);
+#endif
 }
This page took 0.023565 seconds and 4 git commands to generate.