]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - conout.c
manpage: -q, --quiet
[xonotic/gmqcc.git] / conout.c
index bf8b522648802b1b342760fdd81ecb8abfce20f2..a57881bb4a277c16ea36451c81140a292b65dc08 100644 (file)
--- a/conout.c
+++ b/conout.c
@@ -289,6 +289,17 @@ int con_change(const char *out, const char *err) {
     return 1;
 }
 
+/*
+ * Defaultizer because stdio.h shouldn't be used anywhere except here
+ * and inside file.c To prevent mis-match of wrapper-interfaces.
+ */ 
+FILE *con_default_out() {
+    return (console.handle_out = stdout);
+}
+FILE *con_default_err() {
+    return (console.handle_err = stderr);
+}
+
 int con_verr(const char *fmt, va_list va) {
     return con_write(console.handle_err, fmt, va);
 }