--- Ice-1.0.0/include/IceUtil/Config.h.orig Tue Feb 18 19:02:28 2003 +++ Ice-1.0.0/include/IceUtil/Config.h Fri Feb 21 20:21:33 2003 +#if !defined(_WIN32) +#define HAVE_INTTYPES_H +#endif + #ifndef _WIN32 # ifndef _REENTRANT # define _REENTRANT 1 # endif # include # include + +# ifdef HAVE_INTTYPES_H + // define the following to expose definitions for INT64_MIN, INT64_MAX + // C99 standard lets us do this for C++ +# define __STDC_LIMIT_MACROS 1 +# include +# endif /* HAVE_STDINT_H */ #endif // @@ -121,10 +133,10 @@ typedef __int64 Int64; const Int64 Int64Min = -9223372036854775808i64; const Int64 Int64Max = 9223372036854775807i64; -#elif defined(__linux__) && defined(i386) -typedef long long Int64; -const Int64 Int64Min = -0x7fffffffffffffffLL-1LL; -const Int64 Int64Max = 0x7fffffffffffffffLL; +#elif defined(INT64_MIN) && defined(INT64_MAX) +typedef int64_t Int64; +const Int64 Int64Min = INT64_MIN; +const Int64 Int64Max = INT64_MAX; #endif }