aboutsummaryrefslogtreecommitdiffstats
path: root/main/cmocka/wordsize.patch
blob: 816dc3fda00fb47a63e1cf6f0d5a532742665c8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- cmocka-1.1.5/include/cmocka.h.orig
+++ cmocka-1.1.5/include/cmocka.h
@@ -57,12 +57,9 @@
  */
 
 /* If __WORDSIZE is not set, try to figure it out and default to 32 bit. */
+#include <bits/reg.h>
 #ifndef __WORDSIZE
-# if (defined(__x86_64__) && !defined(__ILP32__)) || defined(__sparc_v9__) || defined(__sparcv9)
-#  define __WORDSIZE 64
-# else
-#  define __WORDSIZE 32
-# endif
+#error __WORDSIZE not defined
 #endif
 
 #ifdef DOXYGEN