Fix linkage of init_lldb SWIG method in Python 3.

llvm-svn: 250531
This commit is contained in:
Zachary Turner
2015-10-16 17:52:03 +00:00
parent 7d6d218e12
commit c5b41d67af
2 changed files with 16 additions and 2 deletions

View File

@@ -32,7 +32,11 @@ class ScriptInterpreterPython :
public IOHandlerDelegateMultiline
{
public:
typedef void (*SWIGInitCallback) (void);
#if PY_MAJOR_VERSION >= 3
typedef PyObject*(*SWIGInitCallback) (void);
#else
typedef void(*SWIGInitCallback) (void);
#endif
typedef bool (*SWIGBreakpointCallbackFunction) (const char *python_function_name,
const char *session_dictionary_name,