From e5521da4928f5665abf1046798e73f17dfa21ab3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 21 Apr 2022 18:54:52 -0400 Subject: mark some test variables as extern to avoid linker errors --- stdio.c | 2 +- stdlib.c | 4 ++-- string.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stdio.c b/stdio.c index 49a0a3b..85dcf55 100644 --- a/stdio.c +++ b/stdio.c @@ -4,7 +4,7 @@ FILE *test_file; fpos_t test_fpos; -size_t test_size; +extern size_t test_size; void test_stdio_h(void) { diff --git a/stdlib.c b/stdlib.c index 954031e..3189677 100644 --- a/stdlib.c +++ b/stdlib.c @@ -4,8 +4,8 @@ div_t test_div; ldiv_t test_ldiv; -size_t test_size; -wchar_t test_wchar; +extern size_t test_size; +extern wchar_t test_wchar; void test_stdlib_h(void) { diff --git a/string.c b/string.c index f1174ec..e051b0b 100644 --- a/string.c +++ b/string.c @@ -1,7 +1,7 @@ #include #include "test.h" -size_t test_size; +extern size_t test_size; void test_string_h(void) { -- cgit v1.2.1