Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 15d5408

Browse files
committed
Rust: cleanup macros leaked from pthread.h on Android
1 parent 9f4e2df commit 15d5408

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/builtins/emutls.c

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
* ===----------------------------------------------------------------------===
99
*/
1010
#include <pthread.h>
11+
12+
// Rust-specific change
13+
// One of the headers included by pthread.h in Android #defines si_int to
14+
// something else. Remove this definition, as we use si_int internally to
15+
// mean int.
16+
#ifdef si_int
17+
#undef si_int
18+
#endif
19+
1120
#include <stdint.h>
1221
#include <stdlib.h>
1322
#include <string.h>

0 commit comments

Comments
 (0)