--- abiword-0.9.4.1/abi/src/af/util/xp/ut_AbiObject.cpp.64bit Tue Oct 23 21:38:52 2001 +++ abiword-0.9.4.1/abi/src/af/util/xp/ut_AbiObject.cpp Tue Oct 23 22:07:49 2001 @@ -18,6 +18,8 @@ * 02111-1307, USA. */ +#define _XOPEN_SOURCE 1 // for LONG_BIT +#include #include #include @@ -105,7 +107,11 @@ UT_uint32 UT_AbiObject::hashcode () const { // 9987001 is a reasnonably large prime +#if !defined(LONG_BIT) || (LONG_BIT <= 32) return (UT_uint32) (reinterpret_cast(this) * 0x9863b9); +#else + return (UT_uint32) (reinterpret_cast(this) * 0x9863b9); +#endif } /****************************************************************************/