From cf336367e5947f55f1cd79fd6773a5092d6b2352 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 12 Aug 2009 14:02:18 +0000 Subject: Change SJIS code guard to also check whether dynamic plugins are enabled. svn-id: r43318 --- graphics/sjis.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'graphics/sjis.h') diff --git a/graphics/sjis.h b/graphics/sjis.h index b5d997a19a..93279d0dd5 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -24,11 +24,15 @@ // 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. +// We also enable this code for ScummVM builds including support +// for dynamic engine plugins. // 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) +#if !(defined(ENABLE_KYRA) || defined(ENABLE_SCI) || defined(DYNAMIC_MODULES)) + +// If neither of the above mentioned is enabled, do not include the SJIS code. + +#else #ifndef GRAPHICS_SJIS_H #define GRAPHICS_SJIS_H @@ -184,5 +188,5 @@ private: #endif -#endif // defined(ENABLE_KYRA) || defined(ENABLE_SCI) +#endif // engine and dynamic plugins guard -- cgit v1.2.3