Pull SERGEEV dependencies out of sstlinux.c.
[super-star-trek.git] / reports.c
index 852094f53429469d23d79fc580cb8cb9256213db..32ee650d8b71c90623e5eadf9c9567b41b711d51 100644 (file)
--- a/reports.c
+++ b/reports.c
@@ -4,7 +4,18 @@
 #include <string.h>
 #include "conio.h"
 #include "sstlinux.h"
-#ifndef SERGEEV
+
+#ifdef SERGEEV
+int c_printf (char *format, ... )
+{
+    char buffer[BUFSIZ]; /* Well, BUFSIZ is from ncurses...  */
+    va_list argp;
+    va_start(argp,format);
+    vsprintf(buffer,format,argp);
+    va_end(argp);
+    return waddstr(conio_scr,buffer);
+}
+#else
 #define c_printf proutn
 #endif /* SERGEEV */