diff options
author | Max Horn | 2010-03-18 15:07:30 +0000 |
---|---|---|
committer | Max Horn | 2010-03-18 15:07:30 +0000 |
commit | 3e63df54152c278ea28b430875c82b00d2109967 (patch) | |
tree | 3d9833deaae6b0f2c14d63e2d9ba6415ad0f3056 | |
parent | d78dba3bcae77e85107836cfeecaa958b7ebe4d4 (diff) | |
download | scummvm-rg350-3e63df54152c278ea28b430875c82b00d2109967.tar.gz scummvm-rg350-3e63df54152c278ea28b430875c82b00d2109967.tar.bz2 scummvm-rg350-3e63df54152c278ea28b430875c82b00d2109967.zip |
COMMON: Move port specific '#define fputs' from util.cpp to textconsole.cpp
svn-id: r48280
-rw-r--r-- | common/textconsole.cpp | 18 | ||||
-rw-r--r-- | common/util.cpp | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/common/textconsole.cpp b/common/textconsole.cpp index a74540ea73..eef58fa39c 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 e645ce639b..6ab9f9d7d4 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -28,24 +28,6 @@ #include <stdarg.h> // 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) { |