[Scummvm-cvs-logs] SF.net SVN: scummvm:[42233] scummvm/trunk/graphics

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Jul 7 21:00:51 CEST 2009


Revision: 42233
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42233&view=rev
Author:   lordhoto
Date:     2009-07-07 19:00:51 +0000 (Tue, 07 Jul 2009)

Log Message:
-----------
Add guards to only include SJIS font code, when KYRA or SCI is enabled.

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-07 19:00:39 UTC (rev 42232)
+++ scummvm/trunk/graphics/sjis.cpp	2009-07-07 19:00:51 UTC (rev 42233)
@@ -22,6 +22,12 @@
  * $Id$
  */
 
+// The code in this files is currently only used in KYRA and SCI.
+// So if no of those is enabled, we will not compile it.
+// If you plan to use this code in another engine, you will have
+// to add the proper defined check here and in sjis.h
+#if defined(ENABLE_KYRA) || defined(ENABLE_SCI)
+
 #include "graphics/sjis.h"
 
 #include "common/debug.h"
@@ -191,3 +197,5 @@
 
 } // end of namespace Graphics
 
+#endif // defined(ENABLE_KYRA) || defined(ENABLE_SCI)
+

Modified: scummvm/trunk/graphics/sjis.h
===================================================================
--- scummvm/trunk/graphics/sjis.h	2009-07-07 19:00:39 UTC (rev 42232)
+++ scummvm/trunk/graphics/sjis.h	2009-07-07 19:00:51 UTC (rev 42233)
@@ -22,6 +22,12 @@
  * $Id$
  */
 
+// The code in this files is currently only used in KYRA and SCI.
+// So if no of those is enabled, we will not compile it.
+// If you plan to use this code in another engine, you will have
+// to add the proper defined check here and in sjis.cpp
+#if defined(ENABLE_KYRA) || defined(ENABLE_SCI)
+
 #ifndef GRAPHICS_SJIS_H
 #define GRAPHICS_SJIS_H
 
@@ -123,3 +129,5 @@
 
 #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