diff options
| author | David 'Digit' Turner <digit@android.com> | 2011-03-10 18:02:01 +0100 |
|---|---|---|
| committer | David 'Digit' Turner <digit@android.com> | 2011-03-10 18:02:01 +0100 |
| commit | 08ff1a647484e67f23d1d8a0364b2e930dd2b9da (patch) | |
| tree | 59dc8e046fd5a50a20590a57a06a91018b02cce0 /libc/malloc_hooks/tests/malloc_hooks_tests.cpp | |
| parent | fed58049d50083e4c960d89f4bbd516a181c2d18 (diff) | |
libc: <stdint.h>: Proper C++
This patch prevents the definition of various macros when <stdint.h> is
included from C++. The ISO C99 standard mentions that when this header
is included from a C++ source file, limit and constant related macros
should only be defined when asked explicitely by defining
__STDC_LIMIT_MACROS and __STD_CONSTANT_MACROS, respectively.
The <stdint.h> lacked the proper #ifdef .. #endif blocks for the
following macros:
INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, PTRDIFF_MIN, PTRDIFF_MAX
INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX,
INPTR_C, UINTPR_C, PTRDIFF_C, INTMAX_C, UINTMAX_C
This is intended to fix http://code.google.com/p/android/issues/detail?id=14380
after we copy this file to development/ndk/platforms/android-3/include/
Change-Id: Ia77e0822edfaaf568ea599d7de673b310eeeaa4a
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions
