aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-10-22 12:27:50 +0100
committerPedro Alves <palves@redhat.com>2015-02-27 17:41:13 +0000
commite992c591afd3e4f047ecad5afa49bdbde6c33eac (patch)
tree0af6d68b0a09e643a641b9786b409985524161da /gdb/python
parent64166036b3de842d3e62e9471a2813b55643e3f3 (diff)
downloadgdb-e992c591afd3e4f047ecad5afa49bdbde6c33eac.zip
gdb-e992c591afd3e4f047ecad5afa49bdbde6c33eac.tar.gz
gdb-e992c591afd3e4f047ecad5afa49bdbde6c33eac.tar.bz2
python/python-internal.h: enum ‘ext_lang_rc’ not defined
Fixes this in C++ mode: src/gdb/python/python-internal.h: At global scope: src/gdb/python/python-internal.h:313:13: error: use of enum ‘ext_lang_rc’ without previous declaration extern enum ext_lang_rc gdbpy_apply_val_pretty_printer ^ src/gdb/python/python-internal.h:320:41: error: invalid type in declaration before ‘;’ token const struct language_defn *language); ^ gdb/ChangeLog: 2015-02-27 Pedro Alves <palves@redhat.com> * python/python-internal.h: Include "extension-priv.h".
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index a77f5a6..4c4d32a 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -21,6 +21,7 @@
#define GDB_PYTHON_INTERNAL_H
#include "extension.h"
+#include "extension-priv.h"
/* These WITH_* macros are defined by the CPython API checker that
comes with the Python plugin for GCC. See: