Remove references to particular Python version (use the system default
version); change include statements to use Python.h in the Python framework
on Mac OS X systems; leave it using regular Python.h on other systems.
Note: I think this *ought* to work properly on Linux systems, but I don't have
a system to test it on...
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117612 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/ScriptInterpreterPython.cpp b/source/Interpreter/ScriptInterpreterPython.cpp
index 906cb74..ef472c3 100644
--- a/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/source/Interpreter/ScriptInterpreterPython.cpp
@@ -10,7 +10,11 @@
// In order to guarantee correct working with Python, Python.h *MUST* be
// the *FIRST* header file included:
+#if defined (__APPLE__)
+#include <Python/Python.h>
+#else
#include <Python.h>
+#endif
#include "lldb/Interpreter/ScriptInterpreterPython.h"