diff options
author | Zachary Turner <zturner@google.com> | 2015-10-16 17:52:03 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-10-16 17:52:03 +0000 |
commit | c5b41d67af3df959d2f1958f19e8aab39805743b (patch) | |
tree | 66fa8ee055bc80a1621ec0a92e5f4f9c21008acb /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 7d6d218e1219f7df284b83dfb3eaa5e5b70e77e8 (diff) | |
download | bcm5719-llvm-c5b41d67af3df959d2f1958f19e8aab39805743b.tar.gz bcm5719-llvm-c5b41d67af3df959d2f1958f19e8aab39805743b.zip |
Fix linkage of `init_lldb` SWIG method in Python 3.
llvm-svn: 250531
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h index 0f613e5842c..0cdb9c054eb 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h @@ -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, |