* python/python.c (finalize_python): Only define if HAVE_PYTHON.
This commit is contained in:
parent
a3569abd1a
commit
810849a34e
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
|
||||||
|
|
||||||
|
* python/python.c (finalize_python): Only define if HAVE_PYTHON.
|
||||||
|
|
||||||
2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
|
2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
* eval.c (evaluate_subexp_standard): Eliminate single-use
|
* eval.c (evaluate_subexp_standard): Eliminate single-use
|
||||||
|
|
|
@ -1266,6 +1266,8 @@ user_show_python (char *args, int from_tty)
|
||||||
|
|
||||||
/* Initialize the Python code. */
|
/* Initialize the Python code. */
|
||||||
|
|
||||||
|
#ifdef HAVE_PYTHON
|
||||||
|
|
||||||
/* This is installed as a final cleanup and cleans up the
|
/* This is installed as a final cleanup and cleans up the
|
||||||
interpreter. This lets Python's 'atexit' work. */
|
interpreter. This lets Python's 'atexit' work. */
|
||||||
|
|
||||||
|
@ -1283,6 +1285,7 @@ finalize_python (void *ignore)
|
||||||
|
|
||||||
Py_Finalize ();
|
Py_Finalize ();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Provide a prototype to silence -Wmissing-prototypes. */
|
/* Provide a prototype to silence -Wmissing-prototypes. */
|
||||||
extern initialize_file_ftype _initialize_python;
|
extern initialize_file_ftype _initialize_python;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue