diff options
Diffstat (limited to 'engines/glk/alan2/sysdep.cpp')
-rw-r--r-- | engines/glk/alan2/sysdep.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/glk/alan2/sysdep.cpp b/engines/glk/alan2/sysdep.cpp index daa0417569..d36722c312 100644 --- a/engines/glk/alan2/sysdep.cpp +++ b/engines/glk/alan2/sysdep.cpp @@ -30,6 +30,17 @@ namespace Glk { namespace Alan2 { +#ifdef GLK +extern void fprintf(Common::WriteStream *ws, const char *fmt, ...) { + va_list args; + va_start(args, fmt); + Common::String s = Common::String::vformat(fmt, args); + va_end(args); + + ws->write(s.c_str(), s.size()); +} +#endif + #ifdef _PROTOTYPES_ extern void syserr(char str[]); #endif |