]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/python.c
[gdb/python] Only include gdbsupport/selftest.h if GDB_SELF_TEST
[thirdparty/binutils-gdb.git] / gdb / python / python.c
index d3dea088c3b81585bf3664cc89404a4b1fd761a8..d569fb5a3e488ebedca84cf7e016892f6517d082 100644 (file)
 #include <ctype.h>
 #include "location.h"
 #include "run-on-main-thread.h"
-#include "gdbsupport/selftest.h"
 #include "observable.h"
 
+#if GDB_SELF_TEST
+#include "gdbsupport/selftest.h"
+#endif
+
 /* Declared constants and enum for python stack printing.  */
 static const char python_excp_none[] = "none";
 static const char python_excp_full[] = "full";