File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 17
17
// result, using stddef.h here would pull in Darwin module (which includes
18
18
// libc). This creates a dependency cycle, so we can't use stddef.h in
19
19
// SwiftShims.
20
- #if !defined(__APPLE__)
20
+ // On Linux, the story is different. We get the error message
21
+ // "/usr/include/x86_64-linux-gnu/sys/types.h:146:10: error: 'stddef.h' file not
22
+ // found"
23
+ // This is a known Clang/Ubuntu bug.
24
+ #if !defined(__APPLE__) && !defined(__linux__)
21
25
#include < stddef.h>
22
26
typedef size_t __swift_size_t ;
23
27
#else
Original file line number Diff line number Diff line change 15
15
16
16
// stdint.h is provided by Clang, but it dispatches to libc's stdint.h. As a
17
17
// result, using stdint.h here would pull in Darwin module (which includes
18
- // libc). This creates a dependency cycle, so we can't use stdint.h in
18
+ // libc). This creates a dependency cycle, so we can't use stdint.h in
19
19
// SwiftShims.
20
+ // On Linux, the story is different. We get the error message
21
+ // "/usr/include/x86_64-linux-gnu/sys/types.h:146:10: error: 'stddef.h' file not
22
+ // found"
23
+ // This is a known Clang/Ubuntu bug.
20
24
21
25
// Clang has been defining __INTxx_TYPE__ macros for a long time.
22
26
// __UINTxx_TYPE__ are defined only since Clang 3.5.
23
- #if !defined(__APPLE__)
27
+ #if !defined(__APPLE__) && !defined(__linux__)
24
28
#include < stdint.h>
25
29
typedef int64_t __swift_int64_t ;
26
30
typedef uint64_t __swift_uint64_t ;
You can’t perform that action at this time.
0 commit comments