[Scummvm-git-logs] scummvm master -> ee6c7153cb7c0b7cd9cfa26e0d206f5337210f5b
sev-
sev at scummvm.org
Sun Jun 27 11:00:15 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ee6c7153cb SCI: Fix Symbian compilation.
Commit: ee6c7153cb7c0b7cd9cfa26e0d206f5337210f5b
https://github.com/scummvm/scummvm/commit/ee6c7153cb7c0b7cd9cfa26e0d206f5337210f5b
Author: Fiodar Stryzhniou (fedor_qd at mail.ru)
Date: 2021-06-27T13:00:13+02:00
Commit Message:
SCI: Fix Symbian compilation.
Before build symbian build system process every cource file with prehistoric preprocessor.
I was unable to replace it with a modern version from gcc, since there are special specific commands. There is no description of the commands.
Changed paths:
engines/sci/resource/resource_patcher.cpp
diff --git a/engines/sci/resource/resource_patcher.cpp b/engines/sci/resource/resource_patcher.cpp
index ad16e5f84b..c1da99f773 100644
--- a/engines/sci/resource/resource_patcher.cpp
+++ b/engines/sci/resource/resource_patcher.cpp
@@ -39,7 +39,7 @@ namespace Sci {
#else
#define _PACKINT32(n) (((uint32)n) >> 24 & 0xFF), (((uint32)n) >> 16 & 0xFF), (((uint32)n) >> 8 & 0xFF), (((uint32)n) & 0xFF)
#endif
-#define _BYTEOP(op, numBytes, ...) op, _PACKINT32(numBytes), __VA_ARGS__
+#define _BYTEOP(op, numBytes, ARGS...) op, _PACKINT32(numBytes), ##ARGS
#define _NUMBEROP(op, type, value) op, sizeof(type), _PACKINT32(value)
#define _FILLOP(op, numBytes, value) op, _PACKINT32(numBytes), value
// End of internal resource patcher macros
@@ -52,12 +52,12 @@ namespace Sci {
/**
* Replaces data at the current position.
*/
-#define REPLACE(numBytes, ...) _BYTEOP(kReplaceBytes, numBytes, __VA_ARGS__)
+#define REPLACE(numBytes, ARGS...) _BYTEOP(kReplaceBytes, numBytes, ##ARGS)
/**
* Inserts new data at the current position.
*/
-#define INSERT(numBytes, ...) _BYTEOP(kInsertBytes, numBytes, __VA_ARGS__)
+#define INSERT(numBytes, ARGS...) _BYTEOP(kInsertBytes, numBytes, ##ARGS)
/**
* Replaces a number of the given type at the current position with the given
More information about the Scummvm-git-logs
mailing list