[Scummvm-git-logs] scummvm master -> ceed0423e1b9338938764d5b49c214ae84647ab5
bluegr
noreply at scummvm.org
Wed Nov 19 13:23:09 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
ceed0423e1 FREESCAPE: Fix build, by disabling the non-standard memmem() function
Commit: ceed0423e1b9338938764d5b49c214ae84647ab5
https://github.com/scummvm/scummvm/commit/ceed0423e1b9338938764d5b49c214ae84647ab5
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2025-11-19T15:22:46+02:00
Commit Message:
FREESCAPE: Fix build, by disabling the non-standard memmem() function
memmem() is non-standard and does not exist on Windows, unfortunately.
Comment out its usage, until a viable alternative can be found, to fix
the build.
Reference:
https://codereview.stackexchange.com/questions/182156/memmem-on-windows
Changed paths:
engines/freescape/games/driller/atari.cpp
diff --git a/engines/freescape/games/driller/atari.cpp b/engines/freescape/games/driller/atari.cpp
index 90af8fbeff0..01350807543 100644
--- a/engines/freescape/games/driller/atari.cpp
+++ b/engines/freescape/games/driller/atari.cpp
@@ -42,7 +42,7 @@ Common::SeekableReadStream *DrillerEngine::decryptFileAtariVirtualWorlds(const C
int chunk_size = 0;
while (true) {
- byte *found = (byte *)memmem(data + start, size - start, "CBCP", 4);
+ byte *found = nullptr;//(byte *)memmem(data + start, size - start, "CBCP", 4); // FIXME: memmem() is non-standard
if (!found) break;
int idx = found - data;
More information about the Scummvm-git-logs
mailing list