From 47d69327d8ff8c8073b0cb24c63172d1cd51d0b6 Mon Sep 17 00:00:00 2001 From: levine Date: Tue, 14 Jul 1998 16:42:42 +0000 Subject: use ACE_UINT64_LITERAL to replace platform-specific code --- ace/Stats.cpp | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'ace/Stats.cpp') diff --git a/ace/Stats.cpp b/ace/Stats.cpp index ed4a6c2ee70..43ed5bb1c1a 100644 --- a/ace/Stats.cpp +++ b/ace/Stats.cpp @@ -10,19 +10,12 @@ ACE_RCSID(ace, Stats, "$Id$") #if !defined ACE_LACKS_LONGLONG_T -// 1) If ACE_LACKS_LONGLONG_T, then ACE_UINT64 is a user-defined class. -// To prevent having to construct a static of that class, declare it -// on the stack, and construct it in, each function that needs it. -// 2) To avoid warnings from some compilers, split the 0x100000000ull -// constant into two pieces. - -// @@ David, do we need an ACE_UINT64_LITERAL(X) macro here? - -# if defined (ACE_WIN32) -static const ACE_UINT64 ACE_STATS_INTERNAL_OFFSET = 0x100000000ui64; -# else -static const ACE_UINT64 ACE_STATS_INTERNAL_OFFSET = 0x10000ull * 0x10000ull; -# endif + static const ACE_UINT64 ACE_STATS_INTERNAL_OFFSET = + ACE_UINT64_LITERAL (0x100000000); + +// If ACE_LACKS_LONGLONG_T, then ACE_UINT64 is a user-defined class. +// To prevent having to construct a static of that class, declare it +// on the stack, and construct it in, each function that needs it. #endif /* ! ACE_LACKS_LONGLONG_T */ ACE_UINT32 -- cgit v1.2.1