forked from OSchip/llvm-project
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:
parent
187fcf1e5d
commit
a8bf774b96
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue