Skip to content

Commit 9c6b690

Browse files
committed
[lldb] Move #include out of namespace lldb. NFC.
Including system headers in a namespace is not safe.
1 parent 254a71b commit 9c6b690

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/include/lldb/lldb-types.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
// LLDB_INVALID_HOST_THREAD The value of an invalid lldb::thread_t
3434
// LLDB_INVALID_PIPE The value of an invalid lldb::pipe_t
3535

36-
namespace lldb {
37-
3836
#ifdef _WIN32
3937

4038
#include <process.h>
39+
40+
namespace lldb {
4141
typedef void *rwlock_t;
4242
typedef void *process_t; // Process type is HANDLE
4343
typedef void *thread_t; // Host thread type
@@ -51,6 +51,8 @@ typedef void *pipe_t; // Host pipe type is HANDLE
5151
#else
5252

5353
#include <pthread.h>
54+
55+
namespace lldb {
5456
typedef pthread_rwlock_t rwlock_t;
5557
typedef uint64_t process_t; // Process type is just a pid.
5658
typedef pthread_t thread_t; // Host thread type

0 commit comments

Comments
 (0)