From e992c591afd3e4f047ecad5afa49bdbde6c33eac Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 22 Oct 2014 12:27:50 +0100 Subject: [PATCH] =?utf8?q?python/python-internal.h:=20enum=20=E2=80=98ext?= =?utf8?q?=5Flang=5Frc=E2=80=99=20not=20defined?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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". --- gdb/ChangeLog | 4 ++++ gdb/python/python-internal.h | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6d9b1b0..1b1bd1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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 file. 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: -- 2.7.4