summaryrefslogtreecommitdiffstats
path: root/src/angle/patches/0007-ANGLE-Fix-typedefs-for-Win64.patch
blob: 5779d68e702e88fb0494cd27710ec863b58b09f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 2c7319083bc7bac6faafdf29b3a1d5440abf1313 Mon Sep 17 00:00:00 2001
From: Jonathan Liu <net147@gmail.com>
Date: Sat, 14 Sep 2013 11:32:01 +0300
Subject: [PATCH] ANGLE: Fix typedefs for Win64

The long int type is incorrect for Windows 64-bit as LLP64 is used
there.

Change-Id: Ibbe6f94bffd511ab1285020c89874021a762c2af
---
 src/3rdparty/angle/include/KHR/khrplatform.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/3rdparty/angle/include/KHR/khrplatform.h b/src/3rdparty/angle/include/KHR/khrplatform.h
index 541bfa9..001e925 100644
--- a/src/3rdparty/angle/include/KHR/khrplatform.h
+++ b/src/3rdparty/angle/include/KHR/khrplatform.h
@@ -221,10 +221,17 @@ typedef signed   char          khronos_int8_t;
 typedef unsigned char          khronos_uint8_t;
 typedef signed   short int     khronos_int16_t;
 typedef unsigned short int     khronos_uint16_t;
+#ifdef _WIN64
+typedef signed   long long int khronos_intptr_t;
+typedef unsigned long long int khronos_uintptr_t;
+typedef signed   long long int khronos_ssize_t;
+typedef unsigned long long int khronos_usize_t;
+#else
 typedef signed   long  int     khronos_intptr_t;
 typedef unsigned long  int     khronos_uintptr_t;
 typedef signed   long  int     khronos_ssize_t;
 typedef unsigned long  int     khronos_usize_t;
+#endif
 
 #if KHRONOS_SUPPORT_FLOAT
 /*
-- 
1.8.1.msysgit.1