From 6a53b447e5726bc7d7b8405b1b1dd958c701b007 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 29 Jun 2019 16:09:45 -0700 Subject: Declare global variables as extern in headers Otherwise, each source file that includes the header will create a new definition, which are usually merged together by the linker. Multiple definitions of an object is not allowed in ISO C. --- frontends/riscos/textselection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/riscos/textselection.h') diff --git a/frontends/riscos/textselection.h b/frontends/riscos/textselection.h index 400e3dd26..0d7cc169b 100644 --- a/frontends/riscos/textselection.h +++ b/frontends/riscos/textselection.h @@ -25,7 +25,7 @@ #include "oslib/wimp.h" -struct gui_clipboard_table *riscos_clipboard_table; +extern struct gui_clipboard_table *riscos_clipboard_table; void gui_start_selection(struct gui_window *g); -- cgit v1.2.3