diff options
author | Johannes Schickel | 2009-07-07 19:00:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-07 19:00:51 +0000 |
commit | 2a117d9a90df395a388919d2734024d19f24b8f3 (patch) | |
tree | cbda5e7b3bae77d6919ad48b3fb48b7fbe2e7bf7 | |
parent | e35dd4df1c1f84e29210a4ce263d4b85ea4caf53 (diff) | |
download | scummvm-rg350-2a117d9a90df395a388919d2734024d19f24b8f3.tar.gz scummvm-rg350-2a117d9a90df395a388919d2734024d19f24b8f3.tar.bz2 scummvm-rg350-2a117d9a90df395a388919d2734024d19f24b8f3.zip |
Add guards to only include SJIS font code, when KYRA or SCI is enabled.
svn-id: r42233
-rw-r--r-- | graphics/sjis.cpp | 8 | ||||
-rw-r--r-- | graphics/sjis.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/graphics/sjis.cpp b/graphics/sjis.cpp index 176ec8eda5..7459c98f6c 100644 --- a/graphics/sjis.cpp +++ b/graphics/sjis.cpp @@ -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 @@ uint FontTowns::sjisToChunk(uint8 f, uint8 s) { } // end of namespace Graphics +#endif // defined(ENABLE_KYRA) || defined(ENABLE_SCI) + diff --git a/graphics/sjis.h b/graphics/sjis.h index c7eeeed9f6..ca5fc95004 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -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 @@ private: #endif +#endif // defined(ENABLE_KYRA) || defined(ENABLE_SCI) + |