Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MinGW64-nopermissive.patch « patches « bullet2 « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 915f232f6d726c74f04701969006bab7f13adbad (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
39
Index: LinearMath/btSerializer.h
===================================================================
--- LinearMath/btSerializer.h	(revision 45919)
+++ LinearMath/btSerializer.h	(working copy)
@@ -25,8 +25,15 @@
 #endif
 #include <string.h>
 
+#if defined(_WIN64)
+#  ifdef __MINGW64__
+#    include <basetsd.h>
+#  endif
+typedef __int64 int_ptr;
+#else
+typedef long int_ptr;
+#endif
 
-
 ///only the 32bit versions for now
 extern unsigned char sBulletDNAstr[];
 extern int sBulletDNAlen;
@@ -247,7 +254,7 @@
 				cp++;
 			}
 			{
-				nr= (long)cp;
+				nr= (int_ptr)cp;
 			//	long mask=3;
 				nr= ((nr+3)&~3)-nr;
 				while (nr--)
@@ -282,7 +289,7 @@
 			}
 
 		{
-				nr= (long)cp;
+				nr= (int_ptr)cp;
 			//	long mask=3;
 				nr= ((nr+3)&~3)-nr;
 				while (nr--)