Skip to content

Commit 57bac14

Browse files
committed
[lldb] Fix header include order in ScriptInterpreterPython.cpp
Should fix the following compile error on Windows: C:\Python312\include\pyconfig.h(225): error C2371: 'pid_t': redefinition; different basic types C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\include\lldb/Host/windows/PosixApi.h(80): note: see declaration of 'pid_t'
1 parent 62e4436 commit 57bac14

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "lldb/Host/Config.h"
10-
#include "lldb/Host/StreamFile.h"
11-
#include "lldb/lldb-enumerations.h"
12-
#include "lldb/lldb-forward.h"
13-
#include <locale>
1410

1511
#if LLDB_ENABLE_PYTHON
1612

@@ -36,6 +32,7 @@
3632
#include "lldb/Host/FileSystem.h"
3733
#include "lldb/Host/HostInfo.h"
3834
#include "lldb/Host/Pipe.h"
35+
#include "lldb/Host/StreamFile.h"
3936
#include "lldb/Interpreter/CommandInterpreter.h"
4037
#include "lldb/Interpreter/CommandReturnObject.h"
4138
#include "lldb/Target/Thread.h"
@@ -44,6 +41,8 @@
4441
#include "lldb/Utility/LLDBLog.h"
4542
#include "lldb/Utility/Timer.h"
4643
#include "lldb/ValueObject/ValueObject.h"
44+
#include "lldb/lldb-enumerations.h"
45+
#include "lldb/lldb-forward.h"
4746
#include "llvm/ADT/STLExtras.h"
4847
#include "llvm/ADT/StringRef.h"
4948
#include "llvm/Support/Error.h"

0 commit comments

Comments
 (0)