summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-21 18:54:52 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-21 18:54:52 -0400
commite5521da4928f5665abf1046798e73f17dfa21ab3 (patch)
tree27b8b734d6f3ab6ebdcd96e3b33fd4323dc2fafd
parent17679f331403b2d9af84bb4d107bc0ae1f3373f3 (diff)
mark some test variables as extern to avoid linker errorslibc-tests
-rw-r--r--stdio.c2
-rw-r--r--stdlib.c4
-rw-r--r--string.c2
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 <string.h>
#include "test.h"
-size_t test_size;
+extern size_t test_size;
void test_string_h(void)
{