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/monkey/fetch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/monkey') diff --git a/frontends/monkey/fetch.h b/frontends/monkey/fetch.h index f146e2ef8..2881e92c5 100644 --- a/frontends/monkey/fetch.h +++ b/frontends/monkey/fetch.h @@ -19,6 +19,6 @@ #ifndef NS_MONKEY_FETCH_H #define NS_MONKEY_FETCH_H -struct gui_fetch_table *monkey_fetch_table; +extern struct gui_fetch_table *monkey_fetch_table; #endif /* NS_MONKEY_FETCH_H */ -- cgit v1.2.3