From 0f30a3ea25e9de721c618d216ad0cd6f404c4438 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 22 Feb 2012 16:56:26 +0000 Subject: [PATCH] Remove unused python includes from headers. Python.h is a bad c++ citizen and overwrites some functions with its own macros. This conflicts with libc++'s locale header. I did some refactoring to use Python.h only where it's actually needed a few months ago so the unnecessary includes can be removed now. llvm-svn: 151168 --- lldb/include/lldb/Core/FormatClasses.h | 16 ---------------- lldb/tools/darwin-debug/darwin-debug.cpp | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/lldb/include/lldb/Core/FormatClasses.h b/lldb/include/lldb/Core/FormatClasses.h index 8280c49723ed..865a8c48f358 100644 --- a/lldb/include/lldb/Core/FormatClasses.h +++ b/lldb/include/lldb/Core/FormatClasses.h @@ -11,22 +11,6 @@ #define lldb_FormatClasses_h_ // C Includes - -#ifdef LLDB_DISABLE_PYTHON - -struct PyObject; - -#else // #ifdef LLDB_DISABLE_PYTHON - -#if defined (__APPLE__) -#include -#else -#include -#endif - -#endif // #ifdef LLDB_DISABLE_PYTHON - - #include #include diff --git a/lldb/tools/darwin-debug/darwin-debug.cpp b/lldb/tools/darwin-debug/darwin-debug.cpp index 511b6157e43a..a3306a53e026 100644 --- a/lldb/tools/darwin-debug/darwin-debug.cpp +++ b/lldb/tools/darwin-debug/darwin-debug.cpp @@ -25,6 +25,7 @@ #if defined (__APPLE__) #include +#include #include #include #include