diff options
author | Michael Forney <mforney@mforney.org> | 2019-06-29 16:09:45 -0700 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-06-30 09:52:06 +0100 |
commit | 6a53b447e5726bc7d7b8405b1b1dd958c701b007 (patch) | |
tree | 661c6efe74f6edd53842a1b6a079eafd9ab69fd9 /utils | |
parent | 1c3ce67c62cccd8a32090e770f0cba62e9945f28 (diff) | |
download | netsurf-6a53b447e5726bc7d7b8405b1b1dd958c701b007.tar.gz netsurf-6a53b447e5726bc7d7b8405b1b1dd958c701b007.tar.bz2 |
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.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/file.h b/utils/file.h index 5ee13b5aa..0282c350e 100644 --- a/utils/file.h +++ b/utils/file.h @@ -117,7 +117,7 @@ struct gui_file_table { }; /** Default (posix) file operation table. */ -struct gui_file_table *default_file_table; +extern struct gui_file_table *default_file_table; /** * Generate a path from one or more component elemnts. |