Commit 94afaf6e authored by Jon Kåre Hellan's avatar Jon Kåre Hellan

Include stdlib.h for setenv

(gnm_python_object_get): Only call PyEval_InitThreads if
WITH_THREAD defined in Python headers.
parent a6e6863e
2002-10-11 Jon K Hellan <hellan@acm.org>
* gnm-python.c: Include stdlib.h for setenv
(gnm_python_object_get): Only call PyEval_InitThreads if
WITH_THREAD defined in Python headers.
2002-09-30 Jody Goldberg <jody@gnome.org>
* Release 1.1.9
......
......@@ -17,6 +17,9 @@
#include "gnm-python.h"
#include <unistd.h>
#ifdef BROKEN_PY_INITIALIZE
#include <stdlib.h>
#endif
struct _GnmPython {
GObject parent_instance;
......@@ -133,7 +136,9 @@ gnm_python_object_get (void)
}
#endif
Py_Initialize ();
#ifdef WITH_THREAD
PyEval_InitThreads ();
#endif
#ifdef WITH_PYGTK
init_pygobject ();
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment