[Lldb-commits] [lldb] r151168 - in /lldb/trunk: include/lldb/Core/FormatClasses.h tools/darwin-debug/darwin-debug.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Feb 22 08:56:27 PST 2012
Author: d0k
Date: Wed Feb 22 10:56:26 2012
New Revision: 151168
URL: http://llvm.org/viewvc/llvm-project?rev=151168&view=rev
Log:
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.
Modified:
lldb/trunk/include/lldb/Core/FormatClasses.h
lldb/trunk/tools/darwin-debug/darwin-debug.cpp
Modified: lldb/trunk/include/lldb/Core/FormatClasses.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/FormatClasses.h?rev=151168&r1=151167&r2=151168&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/FormatClasses.h (original)
+++ lldb/trunk/include/lldb/Core/FormatClasses.h Wed Feb 22 10:56:26 2012
@@ -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 <Python/Python.h>
-#else
-#include <Python.h>
-#endif
-
-#endif // #ifdef LLDB_DISABLE_PYTHON
-
-
#include <stdint.h>
#include <unistd.h>
Modified: lldb/trunk/tools/darwin-debug/darwin-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/darwin-debug/darwin-debug.cpp?rev=151168&r1=151167&r2=151168&view=diff
==============================================================================
--- lldb/trunk/tools/darwin-debug/darwin-debug.cpp (original)
+++ lldb/trunk/tools/darwin-debug/darwin-debug.cpp Wed Feb 22 10:56:26 2012
@@ -25,6 +25,7 @@
#if defined (__APPLE__)
#include <getopt.h>
+#include <limits.h>
#include <mach/machine.h>
#include <signal.h>
#include <spawn.h>
More information about the lldb-commits
mailing list