]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
python/python-internal.h: enum ‘ext_lang_rc’ not defined
authorPedro Alves <palves@redhat.com>
Wed, 22 Oct 2014 11:27:50 +0000 (12:27 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 27 Feb 2015 17:41:13 +0000 (17:41 +0000)
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".

gdb/ChangeLog
gdb/python/python-internal.h

index 6d9b1b0242fc002ec36eeb4009a0d3c8179f4e87..1b1bd1fe130cecc90d3518ae327c294d14d6b7b3 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * python/python-internal.h: Include "extension-priv.h".
+
 2015-02-27  Pedro Alves  <palves@redhat.com>
 
        * breakpoint.h (enum print_stop_action): Move further up in the
index a77f5a662671c32afce921ed5d18a9c9c421c935..4c4d32a5ad58ed298a246a7a57021d9bb09f6708 100644 (file)
@@ -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: