blob: 85d281e7f485260a9f1b4cb2cae4a937d221ecdb [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002Upstream-Status: Pending
3
4From 897563a0397266d8ceb058f172e16b06419b2593 Mon Sep 17 00:00:00 2001
5From: Daniel Schepler <dschepler@gmail.com>
6Date: Mon, 26 Mar 2018 17:48:34 +0300
7Subject: [PATCH] Fix FTBFS in x32
8
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009===================================================================
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010
11---
12 Source/WTF/wtf/Platform.h | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
16index 850e298..551c047 100644
17--- a/Source/WTF/wtf/Platform.h
18+++ b/Source/WTF/wtf/Platform.h
19@@ -132,7 +132,11 @@
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020 /* CPU(X86_64) - AMD64 / Intel64 / x86_64 64-bit */
21 #if defined(__x86_64__) \
22 || defined(_M_X64)
23+#ifdef __ILP32__
24+#define WTF_CPU_X86_64_32 1
25+#else
26 #define WTF_CPU_X86_64 1
27+#endif
28 #define WTF_CPU_X86_SSE2 1
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029 #define WTF_CPU_KNOWN 1
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030 #endif