Skip to content

Commit a23d679

Browse files
committed
auto merge of #16323 : c-nixon/rust/master, r=alexcrichton
This allows rustc to be built with msys2's mingw64 Fixes #16347.
2 parents 413328b + c377f9e commit a23d679

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rt/rust_builtin.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/* Foreign builtins. */
12-
13-
#include "valgrind/valgrind.h"
14-
1511
#include <stdint.h>
1612
#include <time.h>
1713
#include <string.h>
@@ -41,6 +37,10 @@
4137
#endif
4238
#endif
4339

40+
/* Foreign builtins. */
41+
//include valgrind.h after stdint.h so that uintptr_t is defined for msys2 w64
42+
#include "valgrind/valgrind.h"
43+
4444
#ifdef __ANDROID__
4545
time_t
4646
timegm(struct tm *tm)

0 commit comments

Comments
 (0)