scripting: fixed kicad compilation, cleanups

This commit is contained in:
Miguel Angel Ajo
2012-08-02 09:47:30 +02:00
parent 5140c348cd
commit b0881d8ec5
6 changed files with 82 additions and 72 deletions
+16 -2
View File
@@ -1,12 +1,26 @@
#ifndef __PYTHON_SCRIPTING_H
#define __PYTHON_SCRIPTING_H
#include <Python.h>
// undefs explained here: https://bugzilla.redhat.com/show_bug.cgi?id=427617
#ifdef _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
#ifdef _XOPEN_SOURCE
#undef _XOPEN_SOURCE
#endif
#include <Python.h>
#ifndef NO_WXPYTHON_EXTENSION_HEADERS
#include <wx/wxPython/wxPython.h>
#endif
/* Function pcbnewInitPythonScripting
* Initializes the Python engine inside pcbnew
*/
bool pcbnewInitPythonScripting(PyThreadState** aMainTState);
bool pcbnewInitPythonScripting();
void pcbnewFinishPythonScripting();
#endif