]> granicus.if.org Git - gc/commit
Fix 'unknown type name GC_INNER' compilation error (FreeBSD)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 8 Aug 2016 18:49:20 +0000 (21:49 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 9 Aug 2016 07:58:19 +0000 (10:58 +0300)
commit6f4e123e34c2e20343a84b6fadd17bde0e7b354c
treefc69834572759e506428cce3d39412170d750946
parentf738c1a73c08eab56606633216fdb0c0a2861a20
Fix 'unknown type name GC_INNER' compilation error (FreeBSD)
(fix commit f13a9559)

See issue #132.  The reason of compilation failure is GC_INNER macro
used before its definition.  The solution is to move
GC_FreeBSDGetDataStart prototype from gcconfig.h to gc_priv.h.

* include/private/gc_priv.h [DATASTART_USES_BSDGETDATASTART]
(GC_FreeBSDGetDataStart): Declare.
* include/private/gc_priv.h [DATASTART_USES_BSDGETDATASTART]
(DATASTART_IS_FUNC): Define macro.
* include/private/gcconfig.h [DATASTART_USES_BSDGETDATASTART]
(GC_FreeBSDGetDataStart, DATASTART_IS_FUNC): Remove.
include/private/gc_priv.h
include/private/gcconfig.h