summaryrefslogtreecommitdiff
path: root/frontends/windows/font.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-29 16:09:45 -0700
committerVincent Sanders <vince@kyllikki.org>2019-06-30 09:52:06 +0100
commit6a53b447e5726bc7d7b8405b1b1dd958c701b007 (patch)
tree661c6efe74f6edd53842a1b6a079eafd9ab69fd9 /frontends/windows/font.h
parent1c3ce67c62cccd8a32090e770f0cba62e9945f28 (diff)
downloadnetsurf-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 'frontends/windows/font.h')
-rw-r--r--frontends/windows/font.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/windows/font.h b/frontends/windows/font.h
index ec2c262ff..8219e4c76 100644
--- a/frontends/windows/font.h
+++ b/frontends/windows/font.h
@@ -35,8 +35,8 @@ struct font_desc {
const char *encoding;
};
-struct gui_layout_table *win32_layout_table;
-struct gui_utf8_table *win32_utf8_table;
+extern struct gui_layout_table *win32_layout_table;
+extern struct gui_utf8_table *win32_utf8_table;
/**
* convert from utf-8 to win32 font encoding.