From: Andreas Schneider Date: Wed, 10 Oct 2012 08:29:54 +0000 (+0200) Subject: include: Fix build on OpenIndiana. X-Git-Tag: cmocka-1.1.1~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ea4503e75660e903c6b5f85677c6500d0bb3e1e;p=platform%2Fupstream%2Fcmocka.git include: Fix build on OpenIndiana. --- diff --git a/src/include/cmocka.h b/src/include/cmocka.h index 7aa31c8..9720f04 100755 --- a/src/include/cmocka.h +++ b/src/include/cmocka.h @@ -88,14 +88,20 @@ typedef unsigned long long uintptr_t */ #else /* _WIN32 */ /* ILP32 and LP64 platforms */ -#ifdef __WORDSIZE +#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 */ #endif /* _WIN32 */