Fix redefinition errors in C++ mode
[deliverable/binutils-gdb.git] / gdb / python / py-arch.c
index da6801e10a7adf85a102649ecee4e45e21da0da4..49c654b0e2b15737510b98999301b4d2ddcc24c5 100644 (file)
@@ -42,7 +42,7 @@ static struct gdbarch_data *arch_object_data = NULL;
       }                                                                \
   } while (0)
 
-static PyTypeObject arch_object_type
+extern PyTypeObject arch_object_type
     CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("arch_object");
 
 /* Associates an arch_object with GDBARCH as gdbarch_data via the gdbarch
@@ -281,7 +281,7 @@ END_PC." },
   {NULL}  /* Sentinel */
 };
 
-static PyTypeObject arch_object_type = {
+PyTypeObject arch_object_type = {
   PyVarObject_HEAD_INIT (NULL, 0)
   "gdb.Architecture",                 /* tp_name */
   sizeof (arch_object),               /* tp_basicsize */
This page took 0.024022 seconds and 4 git commands to generate.