aboutsummaryrefslogtreecommitdiff
path: root/graphics/sjis.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/sjis.h')
-rw-r--r--graphics/sjis.h12
1 files changed, 8 insertions, 4 deletions
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