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
This commit is contained in:
		
							parent
							
								
									bd5e076201
								
							
						
					
					
						commit
						0f30a3ea25
					
				| 
						 | 
					@ -11,22 +11,6 @@
 | 
				
			||||||
#define lldb_FormatClasses_h_
 | 
					#define lldb_FormatClasses_h_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// C Includes
 | 
					// 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 <stdint.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,6 +25,7 @@
 | 
				
			||||||
#if defined (__APPLE__)
 | 
					#if defined (__APPLE__)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <getopt.h>
 | 
					#include <getopt.h>
 | 
				
			||||||
 | 
					#include <limits.h>
 | 
				
			||||||
#include <mach/machine.h>
 | 
					#include <mach/machine.h>
 | 
				
			||||||
#include <signal.h>
 | 
					#include <signal.h>
 | 
				
			||||||
#include <spawn.h>
 | 
					#include <spawn.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue