diff options
author | Caroline Tice <ctice@apple.com> | 2010-10-28 21:51:20 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-10-28 21:51:20 +0000 |
commit | 3cc8751d59ce63debd169e6a4ba1a3002724b4d5 (patch) | |
tree | 459bde61ee83d48709f35b11c6c9ea45a65321f7 /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
parent | d27b05e54a75166f2c8845bac74d0af6a072b8bb (diff) | |
download | bcm5719-llvm-3cc8751d59ce63debd169e6a4ba1a3002724b4d5.tar.gz bcm5719-llvm-3cc8751d59ce63debd169e6a4ba1a3002724b4d5.zip |
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...
llvm-svn: 117612
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 906cb742350..ef472c385a0 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/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" |