[Scummvm-cvs-logs] SF.net SVN: scummvm:[42257] scummvm/trunk/graphics
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Jul 8 09:13:56 CEST 2009
Revision: 42257
http://scummvm.svn.sourceforge.net/scummvm/?rev=42257&view=rev
Author: thebluegr
Date: 2009-07-08 07:13:56 +0000 (Wed, 08 Jul 2009)
Log Message:
-----------
The ENABLE_* flags are only checked for *.cpp files in MSVC, so move the ENABLE_* checks to sjis.cpp to fix compilation under MSVC
Modified Paths:
--------------
scummvm/trunk/graphics/sjis.cpp
scummvm/trunk/graphics/sjis.h
Modified: scummvm/trunk/graphics/sjis.cpp
===================================================================
--- scummvm/trunk/graphics/sjis.cpp 2009-07-08 07:11:43 UTC (rev 42256)
+++ scummvm/trunk/graphics/sjis.cpp 2009-07-08 07:13:56 UTC (rev 42257)
@@ -23,11 +23,16 @@
*/
#include "graphics/sjis.h"
+#include "common/debug.h"
-#ifdef GRAPHICS_SJIS_H
+// The code in this file is currently only used in KYRA and SCI.
+// So if neither of those is enabled, we will skip compiling it.
+// If you plan to use this code in another engine, you will have
+// to add the proper define check here.
+// Also please add the define check at the comment after the
+// matching #endif further down this file.
+#if defined(ENABLE_KYRA) || defined(ENABLE_SCI)
-#include "common/debug.h"
-
namespace Graphics {
bool FontTowns::loadFromStream(Common::ReadStream &stream) {
@@ -193,5 +198,5 @@
} // end of namespace Graphics
-#endif // defined(GRAPHICS_SJIS_H)
+#endif // defined(ENABLE_KYRA) || defined(ENABLE_SCI)
Modified: scummvm/trunk/graphics/sjis.h
===================================================================
--- scummvm/trunk/graphics/sjis.h 2009-07-08 07:11:43 UTC (rev 42256)
+++ scummvm/trunk/graphics/sjis.h 2009-07-08 07:13:56 UTC (rev 42257)
@@ -22,14 +22,6 @@
* $Id$
*/
-// The code in this file is currently only used in KYRA and SCI.
-// So if neither of those is enabled, we will skip compiling it.
-// If you plan to use this code in another engine, you will have
-// to add the proper define check here.
-// Also please add the define check at the comment after the
-// matching #endif further down this file.
-#if defined(ENABLE_KYRA) || defined(ENABLE_SCI)
-
#ifndef GRAPHICS_SJIS_H
#define GRAPHICS_SJIS_H
@@ -131,5 +123,3 @@
#endif
-#endif // defined(ENABLE_KYRA) || defined(ENABLE_SCI)
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list