Modify ctype.h headers to test for non-GNU inline semantics correctly

GCC and Clang will not define __GNUC_STDC_INLINE__ when compiling C++, so this
macro currently implies regular C++ inline semantics in C++. This may cause
the compiler to emit an external definition of the function, which will cause
link errors when compiling with -fvisibility=hidden; see e.g. crbug.com/481902.

To fix this, also test the __cplusplus macro when deciding whether to assume
non-GNU inline semantics.

Change-Id: Ia31cfb8f01465b6f5354ec619223d7cc78b064e1
61 files changed
tree: f12735f79c7bb90b91cbf71d67c542eef830b588
  1. 4/
  2. 5/
  3. 6/
  4. 7/
  5. 8/
  6. 9/
  7. Android.mk
  8. CleanSpec.mk