simplify __stdio_exit static linking logic
[musl] / src / stdio / __towrite.c
index ba67e0d..0a69d92 100644 (file)
@@ -17,9 +17,9 @@ int __towrite(FILE *f)
        return 0;
 }
 
-const int __towrite_used = 1;
+void __stdio_exit_needed(void);
 
-void __flush_on_exit()
+void __towrite_needs_stdio_exit()
 {
-       __stdio_exit();
+       __stdio_exit_needed();
 }