From: Pedro Alves Date: Wed, 22 Oct 2014 11:27:50 +0000 (+0100) Subject: python/python-internal.h: enum ‘ext_lang_rc’ not defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e992c591afd3e4f047ecad5afa49bdbde6c33eac;p=binutils-gdb.git 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 * python/python-internal.h: Include "extension-priv.h". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6d9b1b0242f..1b1bd1fe130 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-02-27 Pedro Alves + + * python/python-internal.h: Include "extension-priv.h". + 2015-02-27 Pedro Alves * breakpoint.h (enum print_stop_action): Move further up in the diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index a77f5a66267..4c4d32a5ad5 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: