]> granicus.if.org Git - gc/commit
Fix gc_allocator.h compilation by Clang
authorIvan Maidanski <ivmai@mail.ru>
Tue, 13 Aug 2019 08:05:06 +0000 (11:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 13 Aug 2019 08:05:06 +0000 (11:05 +0300)
commitccab21417f5134c5ead2d5ba44e94607180a347d
tree9559202f43ad93cf1b5f58e2648bbe35f17da0f2
parentb6d8aadafdc79d8159f3ecac738d6896c960405a
Fix gc_allocator.h compilation by Clang

Issue #273 (bdwgc).

Though clang may report __cplusplus as 201402L, it seems to be not
C++11 compliant fully.

* include/gc_allocator.h [!GC_ATTR_EXPLICIT && __clang__ && !CPPCHECK]
(GC_ATTR_EXPLICIT): Define to empty (instead of "explicit").
* tests/test_cpp.cc [!GC_ATTR_EXPLICIT && __clang__ && !CPPCHECK]
(GC_ATTR_EXPLICIT): Likewise.
include/gc_allocator.h
tests/test_cpp.cc