This allows rustc to be build under msys2's mingw64 gcc
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-/* Foreign builtins. */
-
-#include "valgrind/valgrind.h"
-
#include <stdint.h>
#include <time.h>
#include <string.h>
#endif
#endif
+/* Foreign builtins. */
+//include valgrind.h after stdint.h so that uintptr_t is defined for msys2 w64
+#include "valgrind/valgrind.h"
+
#ifdef __ANDROID__
time_t
timegm(struct tm *tm)