blob: 135fd65195c2854b9a777a89ba58e9932974c489 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/include/cmocka.h b/include/cmocka.h
index bfcdd3f..60467b9 100644
--- a/include/cmocka.h
+++ b/include/cmocka.h
@@ -56,7 +56,7 @@ int __stdcall IsDebuggerPresent();
/* If __WORDSIZE is not set, try to figure it out and default to 32 bit. */
#ifndef __WORDSIZE
-# if defined(__x86_64__) && !defined(__ILP32__)
+# if ( defined(__x86_64__) && !defined(__ILP32__) ) || defined(__s390x__)
# define __WORDSIZE 64
# else
# define __WORDSIZE 32
|