OSDN Git Service

Fix inttypes.h PRI?PTR and SCN?PTR macros.
authorElliott Hughes <enh@google.com>
Tue, 2 Jul 2013 22:23:38 +0000 (15:23 -0700)
committerElliott Hughes <enh@google.com>
Tue, 2 Jul 2013 22:35:27 +0000 (15:35 -0700)
commit74f0833df6d04d51eb4e554845862ed7279f78b0
treec0ffd0126ace4a3ad84afab782ca9da8dfb8480e
parent1ba3a2c26937c68a4a0bd4fdffe95f5162077997
Fix inttypes.h PRI?PTR and SCN?PTR macros.

Our intptr_t and uintptr_t aren't "long". Add a compilation test so we remember
to fix this to cope with 32- and 64-bit later.

Bug: http://code.google.com/p/android/issues/detail?id=57218
Change-Id: I2f816d339edb4f7d57e4418b818fb4c602093f38
libc/include/inttypes.h
tests/Android.mk
tests/inttypes_test.cpp [new file with mode: 0644]