From 63dd5d251846b1865273cd8fdfa299aa473e5b76 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 29 Mar 2019 20:17:20 +0000 Subject: [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 --- lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h') 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 +#endif + // Include python for non windows machines #include #endif // LLDB_DISABLE_PYTHON -- cgit v1.1