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
This commit is contained in:
Caroline Tice
2010-10-28 21:51:20 +00:00
parent d27b05e54a
commit 3cc8751d59
5 changed files with 57 additions and 34 deletions

View File

@@ -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"