Skip to content

Commit 3bd71c9

Browse files
committed
[NFC] Include <cstdlib> and <cstdint> where necessary.
Our Bazel builds have become more strict about libc++ dependencies recently, so these are required to pick up declarations of `malloc` and `uint32_t`, respectively.
1 parent 11fbd94 commit 3bd71c9

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

include/swift/Demangling/Demangle.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include <cassert>
2929
#include <cstdint>
30+
#include <cstdlib>
3031
#include <functional>
3132
#include <memory>
3233
#include <string>

include/swift/Remote/MemoryReader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "swift/SwiftRemoteMirror/MemoryReaderInterface.h"
2323
#include <optional>
2424

25+
#include <cstdlib>
2526
#include <cstring>
2627
#include <functional>
2728
#include <memory>

stdlib/public/Concurrency/Debug.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#ifndef SWIFT_CONCURRENCY_DEBUG_H
1818
#define SWIFT_CONCURRENCY_DEBUG_H
1919

20+
#include <cstdint>
21+
2022
#include "swift/Runtime/Config.h"
2123

2224
namespace swift {

0 commit comments

Comments
 (0)