summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-09 00:53:11 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:31 -0400
commit50a298ea3b122efbb31e7674a20e6c7dc30ca1dc (patch)
treee4531801a4d1a633713fe52dc39347873c7b8f2d
parent7dc8df56c16f0fd9d791511e54d4590fb5a2dbf3 (diff)
downloadmusl-50a298ea3b122efbb31e7674a20e6c7dc30ca1dc.tar.gz
move __stdio_exit_needed to stdio_impl.h
this functions is glue for linking dependency logic.
-rw-r--r--src/internal/stdio_impl.h2
-rw-r--r--src/stdio/__toread.c2
-rw-r--r--src/stdio/__towrite.c2
3 files changed, 2 insertions, 4 deletions
diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h
index 4cb79861..cdb0f96b 100644
--- a/src/internal/stdio_impl.h
+++ b/src/internal/stdio_impl.h
@@ -61,6 +61,8 @@ size_t __string_read(FILE *, unsigned char *, size_t);
int __toread(FILE *);
int __towrite(FILE *);
+void __stdio_exit_needed(void);
+
#if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303)
__attribute__((visibility("protected")))
#endif
diff --git a/src/stdio/__toread.c b/src/stdio/__toread.c
index 35f67b8f..8f9f27bd 100644
--- a/src/stdio/__toread.c
+++ b/src/stdio/__toread.c
@@ -13,8 +13,6 @@ int __toread(FILE *f)
return (f->flags & F_EOF) ? EOF : 0;
}
-void __stdio_exit_needed(void);
-
void __toread_needs_stdio_exit()
{
__stdio_exit_needed();
diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c
index b022cbca..01998677 100644
--- a/src/stdio/__towrite.c
+++ b/src/stdio/__towrite.c
@@ -17,8 +17,6 @@ int __towrite(FILE *f)
return 0;
}
-void __stdio_exit_needed(void);
-
void __towrite_needs_stdio_exit()
{
__stdio_exit_needed();