summaryrefslogtreecommitdiffstats
path: root/base/port.h
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-08 04:00:36 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-08 04:00:36 +0000
commitda463967e200fe91ccc3384db8f8ba34c08f3847 (patch)
treeba720771cabfc0d3a2463de69b15faf65c061e31 /base/port.h
parent53bfa860a4ede0a1f85f02b8d9d8a3896b6b0eb2 (diff)
downloadchromium_src-da463967e200fe91ccc3384db8f8ba34c08f3847.zip
chromium_src-da463967e200fe91ccc3384db8f8ba34c08f3847.tar.gz
chromium_src-da463967e200fe91ccc3384db8f8ba34c08f3847.tar.bz2
Remove all uses of GG_LONGLONG and GG_ULONGLONG.
123LL and 123ULL now work everywhere. You can also use INT64_C and UINT64_C (from <stdint.h>) in Chromium code (we force-define __STDC_CONSTANT_MACROS). (And sometimes you can just use static_cast<(u)int64_t>.) Don't remove their definitions yet, because some macros that are multiply-defined (in an identical way) rely on them. D'oh. R=brettw@chromium.org TBR=sky@chromium.org,satorux@chromium.org,vrk@chromium.org,rch@chromium.org,shess@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262147 Review URL: https://codereview.chromium.org/218953003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262294 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/port.h')
-rw-r--r--base/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/port.h b/base/port.h
index 307f257..0a04d55 100644
--- a/base/port.h
+++ b/base/port.h
@@ -8,6 +8,10 @@
#include <stdarg.h>
#include "build/build_config.h"
+// DEPRECATED: Use ...LL and ...ULL suffixes.
+// TODO(viettrungluu): Delete these. These are only here until |GG_(U)INT64_C|
+// are deleted (some other header files (re)define |GG_(U)INT64_C|, so our
+// definitions of them must exactly match theirs).
#ifdef COMPILER_MSVC
#define GG_LONGLONG(x) x##I64
#define GG_ULONGLONG(x) x##UI64