Fix 'attribute declaration must precede definition' warning (clang-3.1)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 18 Dec 2013 19:33:50 +0000 (23:33 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 18 Dec 2013 19:33:50 +0000 (23:33 +0400)
commit7635570ffa95f64f8d225f3c39a618c288d1c9f1
treefadaafa8d84217a0a8fa68087d8dc525ee3833b3
parent09304d190755782866524aa9b6d06ea83f69a023
Fix 'attribute declaration must precede definition' warning (clang-3.1)

* extra/gc.c: Include gc_inline.h explicitly before including mallocx.c
(to workaround "attribute declaration must precede definition" warning
reported by clang-3.1 for GC_generic_malloc_many); define
GC_PTHREAD_REDIRECTS_ONLY before including gc_pthread_redirects.h.
* include/gc_pthread_redirects.h (GC_dlopen, GC_pthread_sigmask,
GC_PTHREAD_CREATE_CONST, GC_pthread_create, GC_pthread_join,
GC_pthread_detach, GC_pthread_cancel, GC_pthread_exit): Do not declare
if GC_PTHREAD_REDIRECTS_ONLY defined (to workaround
"attribute declaration must precede definition" warning reported by
clang-3.1).
extra/gc.c
include/gc_pthread_redirects.h