OSDN Git Service

Define atomic_charN_t only if charN_t is supported.
authorHans Boehm <hboehm@google.com>
Wed, 16 Jul 2014 18:33:48 +0000 (11:33 -0700)
committerHans Boehm <hboehm@google.com>
Thu, 17 Jul 2014 00:31:05 +0000 (17:31 -0700)
commit8b002362d996859ebfc8588d6859a9a79203dc27
tree956126751b812cbba9b829bc81167207e72d4ba7
parent385bb1ededa734e88bafb8aaf817e9a984bf0d18
Define atomic_charN_t only if charN_t is supported.

Some platform code is apparently compiled with switches that do
not support char16_t and char32_t.  This caused stdatomic.h to fail
to compile.  This CL makes stdatomic.h usable in those environments.

Change-Id: Ie5a17f20b8b545c97128d00605b4eabd2a6bfe3e
libc/include/stdatomic.h