summaryrefslogtreecommitdiff
path: root/user/cmocka/uintptr_t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/cmocka/uintptr_t.patch')
-rw-r--r--user/cmocka/uintptr_t.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/user/cmocka/uintptr_t.patch b/user/cmocka/uintptr_t.patch
new file mode 100644
index 000000000..2950e3933
--- /dev/null
+++ b/user/cmocka/uintptr_t.patch
@@ -0,0 +1,25 @@
+--- cmocka-1.1.5/include/cmocka.h.old 2019-03-28 12:33:50.000000000 +0000
++++ cmocka-1.1.5/include/cmocka.h 2020-01-14 10:59:11.716464203 +0000
+@@ -123,21 +123,7 @@
+ # elif defined(_WIN64)
+ typedef unsigned long int uintptr_t;
+ # else /* _WIN32 */
+-
+-/* ILP32 and LP64 platforms */
+-# ifdef __WORDSIZE /* glibc */
+-# if __WORDSIZE == 64
+- typedef unsigned long int uintptr_t;
+-# else
+- typedef unsigned int uintptr_t;
+-# endif /* __WORDSIZE == 64 */
+-# else /* __WORDSIZE */
+-# if defined(_LP64) || defined(_I32LPx)
+- typedef unsigned long int uintptr_t;
+-# else
+- typedef unsigned int uintptr_t;
+-# endif
+-# endif /* __WORDSIZE */
++# include <stdint.h>
+ # endif /* _WIN32 */
+
+ # define _UINTPTR_T