diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-04-21 18:54:52 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-04-21 18:54:52 -0400 |
commit | e5521da4928f5665abf1046798e73f17dfa21ab3 (patch) | |
tree | 27b8b734d6f3ab6ebdcd96e3b33fd4323dc2fafd | |
parent | 17679f331403b2d9af84bb4d107bc0ae1f3373f3 (diff) |
mark some test variables as extern to avoid linker errorslibc-tests
-rw-r--r-- | stdio.c | 2 | ||||
-rw-r--r-- | stdlib.c | 4 | ||||
-rw-r--r-- | string.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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) { @@ -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) { @@ -1,7 +1,7 @@ #include <string.h> #include "test.h" -size_t test_size; +extern size_t test_size; void test_string_h(void) { |