aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2015-09-14 22:43:01 +0200
committerWillem Jan Palenstijn2015-09-14 22:46:19 +0200
commitbf822e7dc03327da937cb37cb4cc9f9e1af3f4b5 (patch)
tree88e89b6c578ebabf46a736bbe732780e8b1f14e4
parentc7aa5cb995a41f9e4c72b37533277c1b4c9476fc (diff)
downloadscummvm-rg350-bf822e7dc03327da937cb37cb4cc9f9e1af3f4b5.tar.gz
scummvm-rg350-bf822e7dc03327da937cb37cb4cc9f9e1af3f4b5.tar.bz2
scummvm-rg350-bf822e7dc03327da937cb37cb4cc9f9e1af3f4b5.zip
SYMBIAN: Rename define and rephrase comments
-rw-r--r--backends/platform/symbian/src/portdefs.h7
-rw-r--r--backends/saves/default/default-saves.cpp9
2 files changed, 8 insertions, 8 deletions
diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h
index d0769136b2..f9da09d3eb 100644
--- a/backends/platform/symbian/src/portdefs.h
+++ b/backends/platform/symbian/src/portdefs.h
@@ -58,9 +58,10 @@ typedef signed long int int32;
// re-define those data types.
#define SCUMMVM_DONT_DEFINE_TYPES
-// Hiding macro "remove" defined in unistd.h from anywere except default-saves.cpp.
-// Should be after including unistd.h
-#ifndef USE_SYSTEM_REMOVE
+// Hide the macro "remove" defined in unistd.h from anywere except where
+// we explicitly require it. This lets us use the name "remove" in engines.
+// Must be after including unistd.h .
+#ifndef SYMBIAN_USE_SYSTEM_REMOVE
#undef remove
#endif
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp
index cca7535d27..4f7013724a 100644
--- a/backends/saves/default/default-saves.cpp
+++ b/backends/saves/default/default-saves.cpp
@@ -20,11 +20,10 @@
*
*/
-/* This definition fixes compilation error for Symbian due conflict between
- * builting macro "remove" and various functions named "remove" in engines.
- * Should be before including scummsys.h
- */
-#define USE_SYSTEM_REMOVE
+// This define lets us use the system function remove() on Symbian, which
+// is disabled by default due to a macro conflict.
+// See backends/platform/symbian/src/portdefs.h .
+#define SYMBIAN_USE_SYSTEM_REMOVE
#include "common/scummsys.h"