summaryrefslogtreecommitdiff
path: root/ace/Stats.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-14 16:42:42 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-14 16:42:42 +0000
commit47d69327d8ff8c8073b0cb24c63172d1cd51d0b6 (patch)
treedf1ea7fb61c95ccba6c56584b75884fcfb3c735c /ace/Stats.cpp
parent09fbd3b92cc884cb88c858395e01645d9f4d72bc (diff)
downloadATCD-47d69327d8ff8c8073b0cb24c63172d1cd51d0b6.tar.gz
use ACE_UINT64_LITERAL to replace platform-specific code
Diffstat (limited to 'ace/Stats.cpp')
-rw-r--r--ace/Stats.cpp19
1 files changed, 6 insertions, 13 deletions
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