Fix multiple definitions of display variable.
commita09edcda9e87271b4e7d550c11fdf7ec295b29d5
authorJeremy Sowden <jeremy@azazel.net>
Fri, 17 Apr 2020 16:34:03 +0000 (17 17:34 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 17 Apr 2020 16:56:31 +0000 (17 17:56 +0100)
treea49e05284f27a69b988f5ca924602e620b87b224
parent51132ae7ee500abd56d315a3947df9e7e0ef1470
Fix multiple definitions of display variable.

The display variable is declared in a header with no explicit linkage.
This results in there being multiple definitions of it in wmbiff.o and
libwmgeneral.a and a failure during linking with gcc 10.

Add `extern` to the header declaration and a separate declaration with no
linkage in wmgeneral.c where it is assigned.

Link: https://bugs.debian.org/957937
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
wmbiff/wmgeneral/wmgeneral.c
wmbiff/wmgeneral/wmgeneral.h