Python: follow python guidelines for header usage

Python requires that Python.h is included before any std header.  Not doing so
results in conflicts with standards macros such as `_XOPEN_SOURCE`.  NFC.

llvm-svn: 250673
This commit is contained in:
Saleem Abdulrasool 2015-10-19 01:16:17 +00:00
parent 187fcf1e5d
commit a8bf774b96
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
#include <stdio.h>
// NOTE: Since Python may define some pre-processor definitions which affect the
// standard headers on some systems, you must include Python.h before any
// standard headers are included.
#include "Python.h"
#include <stdio.h>
#ifndef LLDB_DISABLE_LIBEDIT
#include <editline/readline.h>
#endif