36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
From d17f9f527f2cdae7564602525b7e851ce4902115 Mon Sep 17 00:00:00 2001
|
|
From: Johannes Schindelin <johannes.schindelin@gmx.de>
|
|
Date: Sat, 14 Apr 2018 20:10:12 +0200
|
|
Subject: [PATCH 16/23] format-macros.h: do not rely on __STDC_FORMAT_MACROS
|
|
|
|
The PRId64 macro and friends are not universally defined in inttypes.h.
|
|
Let's just go ahead and define them when needed.
|
|
|
|
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
|
|
---
|
|
deps/v8/src/base/macros.h | 8 ++++++--
|
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/deps/v8/src/base/macros.h b/deps/v8/src/base/macros.h
|
|
index fbb6ac71..356e30a4 100644
|
|
--- a/deps/v8/src/base/macros.h
|
|
+++ b/deps/v8/src/base/macros.h
|
|
@@ -316,8 +316,12 @@ V8_INLINE A implicit_cast(A x) {
|
|
# else
|
|
# define V8_PTR_PREFIX ""
|
|
# endif // V8_HOST_ARCH_64_BIT
|
|
-#elif V8_CC_MINGW64
|
|
-# define V8_PTR_PREFIX "I64"
|
|
+#elif V8_CC_MINGW
|
|
+# if V8_TARGET_ARCH_X64
|
|
+# define V8_PTR_PREFIX "I64"
|
|
+# else
|
|
+# define V8_PTR_PREFIX ""
|
|
+# endif
|
|
#elif V8_HOST_ARCH_64_BIT
|
|
# define V8_PTR_PREFIX "l"
|
|
#else
|
|
--
|
|
2.17.0.windows.1
|
|
|