From 3e63df54152c278ea28b430875c82b00d2109967 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 18 Mar 2010 15:07:30 +0000 Subject: [PATCH] COMMON: Move port specific '#define fputs' from util.cpp to textconsole.cpp svn-id: r48280 --- common/textconsole.cpp | 18 ++++++++++++++++++ common/util.cpp | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/common/textconsole.cpp b/common/textconsole.cpp index a74540ea736..eef58fa39c6 100644 --- a/common/textconsole.cpp +++ b/common/textconsole.cpp @@ -25,6 +25,24 @@ #include "common/textconsole.h" #include "common/system.h" +#ifdef _WIN32_WCE +// This is required for the debugger attachment +extern bool isSmartphone(); +#endif + +#ifdef __PLAYSTATION2__ + // for those replaced fopen/fread/etc functions + #include "backends/platform/ps2/fileio.h" + + #define fputs(str, file) ps2_fputs(str, file) +#endif + +#ifdef __DS__ + #include "backends/fs/ds/ds-fs.h" + + #define fputs(str, file) DS::std_fwrite(str, strlen(str), 1, file) +#endif + namespace Common { static OutputFormatter s_errorOutputFormatter = 0; diff --git a/common/util.cpp b/common/util.cpp index e645ce639b7..6ab9f9d7d41 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -28,24 +28,6 @@ #include // For va_list etc. -#ifdef _WIN32_WCE -// This is required for the debugger attachment -extern bool isSmartphone(); -#endif - -#ifdef __PLAYSTATION2__ - // for those replaced fopen/fread/etc functions - #include "backends/platform/ps2/fileio.h" - - #define fputs(str, file) ps2_fputs(str, file) -#endif - -#ifdef __DS__ - #include "backends/fs/ds/ds-fs.h" - - #define fputs(str, file) DS::std_fwrite(str, strlen(str), 1, file) -#endif - namespace Common { StringTokenizer::StringTokenizer(const String &str, const String &delimiters) : _str(str), _delimiters(delimiters) {