summaryrefslogtreecommitdiffstats
path: root/base/port.h
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 17:35:10 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 17:35:10 +0000
commit9406c05f78eccb7cc2849cf87a4202e1538ecb9c (patch)
tree37d27e2d2e2f820bc2c045c27a42894d3f76342f /base/port.h
parent381ae07bab785f46f54ee5ad770dbcfabbe92d6e (diff)
downloadchromium_src-9406c05f78eccb7cc2849cf87a4202e1538ecb9c.zip
chromium_src-9406c05f78eccb7cc2849cf87a4202e1538ecb9c.tar.gz
chromium_src-9406c05f78eccb7cc2849cf87a4202e1538ecb9c.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 Review URL: https://codereview.chromium.org/218953003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262147 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