]> granicus.if.org Git - gc/commit
Fix GC_jmp_buf multiple definition
authorIvan Maidanski <ivmai@mail.ru>
Tue, 15 Nov 2016 08:35:28 +0000 (11:35 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 15 Nov 2016 08:35:28 +0000 (11:35 +0300)
commit808af929bf55cd2b31e354f1903e182b151e8668
tree592534e515a9720d5b1e8f173c436fead2e5532b
parentf9948563d80a4b9da069b10eac46852763aacaec
Fix GC_jmp_buf multiple definition

This error occurs only if "-fno-common" gcc option is specified.

* include/private/gc_priv.h [USE_PROC_FOR_LIBRARIES && THREADS
|| NEED_FIND_LIMIT] (GC_jmp_buf): Replace variable definition with
a declaration (as GC_EXTERN).
* os_dep.c [USE_PROC_FOR_LIBRARIES && THREADS || NEED_FIND_LIMIT]
(GC_jmp_buf): Define global variable (as GC_INNER).
include/private/gc_priv.h
os_dep.c