diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-29 20:17:20 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-29 20:17:20 +0000 |
commit | 63dd5d251846b1865273cd8fdfa299aa473e5b76 (patch) | |
tree | 8085983faa52c0c08c3740c50f7e74facf7f813d /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
parent | c7c6413119380828d92e8beb5fb2f35d3f2e1572 (diff) | |
download | llvm-63dd5d251846b1865273cd8fdfa299aa473e5b76.zip llvm-63dd5d251846b1865273cd8fdfa299aa473e5b76.tar.gz llvm-63dd5d251846b1865273cd8fdfa299aa473e5b76.tar.bz2 |
[Python] Remove Python include from ScriptInterpreterPython.h
This patch limits the scope of the python header to the implementation
of the python script interpreter plugin. ScriptInterpreterPython is now
an abstract interface that doesn't expose any Python specific types, and
is implemented by the ScriptInterpreterPythonImpl.
Differential revision: https://reviews.llvm.org/D59976
llvm-svn: 357307
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h index 8796f1d..884514d 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h @@ -32,6 +32,12 @@ #undef _XOPEN_SOURCE #endif +// Include locale before Python so _PY_PORT_CTYPE_UTF8_ISSUE doesn't cause +// macro redefinitions. +#if defined(__APPLE__) +#include <locale> +#endif + // Include python for non windows machines #include <Python.h> #endif // LLDB_DISABLE_PYTHON |