diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 16:55:34 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 16:55:34 +0000 |
commit | 8bb96dd876b060ef374f36547c3cd6328ee819e1 (patch) | |
tree | 3f02decbba048296261713dd6b7a8f640d6e6878 | |
parent | b5f97555dca087b39f9f22b9d85c15713f83b102 (diff) | |
download | chromium_src-8bb96dd876b060ef374f36547c3cd6328ee819e1.zip chromium_src-8bb96dd876b060ef374f36547c3cd6328ee819e1.tar.gz chromium_src-8bb96dd876b060ef374f36547c3cd6328ee819e1.tar.bz2 |
Remove unused GG_(U)INTn_C macros from base/port.h.
Also mark the remaining ones as deprecated. In Chromium, we force-define
__STDC_CONSTANT_MACROS, so you can just use the regular (U)INTn_C macros
from <stdint.h>.
R=brettw@chromium.org
Review URL: https://codereview.chromium.org/218613005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260571 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/port.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/base/port.h b/base/port.h index af4e450..b04ca29 100644 --- a/base/port.h +++ b/base/port.h @@ -16,19 +16,10 @@ #define GG_ULONGLONG(x) x##ULL #endif -// Per C99 7.8.14, define __STDC_CONSTANT_MACROS before including <stdint.h> -// to get the INTn_C and UINTn_C macros for integer constants. It's difficult -// to guarantee any specific ordering of header includes, so it's difficult to -// guarantee that the INTn_C macros can be defined by including <stdint.h> at -// any specific point. Provide GG_INTn_C macros instead. - -#define GG_INT8_C(x) (x) -#define GG_INT16_C(x) (x) -#define GG_INT32_C(x) (x) +// DEPRECATED: In Chromium, we force-define __STDC_CONSTANT_MACROS, so you can +// just use the regular (U)INTn_C macros from <stdint.h>. +// TODO(viettrungluu): Remove the remaining GG_(U)INTn_C macros. #define GG_INT64_C(x) GG_LONGLONG(x) - -#define GG_UINT8_C(x) (x ## U) -#define GG_UINT16_C(x) (x ## U) #define GG_UINT32_C(x) (x ## U) #define GG_UINT64_C(x) GG_ULONGLONG(x) |