From c66e0118a3b270a96f71ce2f072ef5598436d7d1 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 15 Apr 2018 13:33:29 +0200 Subject: [PATCH 23/23] Make sure that __rdtsc() is declared Otherwise, the 32-bit mingw-w64 build fails. Signed-off-by: Johannes Schindelin --- deps/v8/src/base/platform/time.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deps/v8/src/base/platform/time.cc b/deps/v8/src/base/platform/time.cc index c2d36cc2..2b44c7a5 100644 --- a/deps/v8/src/base/platform/time.cc +++ b/deps/v8/src/base/platform/time.cc @@ -864,6 +864,12 @@ void ThreadTicks::WaitUntilInitializedWin() { #endif } +#ifdef __MINGW64_VERSION_MAJOR +extern "C" { + extern unsigned __int64 __rdtsc(void); +} +#endif + #ifndef V8_HOST_ARCH_ARM64 double ThreadTicks::TSCTicksPerSecond() { DCHECK(IsSupported()); -- 2.17.0.windows.1