Skip to content

Commit c377f9e

Browse files
committed
Move system header includes above valgrind.h include
This allows rustc to be build under msys2's mingw64 gcc
1 parent 8a02304 commit c377f9e

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)