[Scummvm-git-logs] scummvm master -> fa2533c5d15fdd939b098211720c684c82fd4731

bluegr noreply at scummvm.org
Tue Feb 17 01:02:57 UTC 2026


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:
fa2533c5d1 CREATE_PROJECT: Fix standalone tool build


Commit: fa2533c5d15fdd939b098211720c684c82fd4731
    https://github.com/scummvm/scummvm/commit/fa2533c5d15fdd939b098211720c684c82fd4731
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-02-17T03:02:37+02:00

Commit Message:
CREATE_PROJECT: Fix standalone tool build

create_project is a standalone tool, so fix its build when it's not
being built with the standard "make devtools" command (e.g. from
Xcode or MSVC).

This reverts the inclusion of common/util.h, introduced in commit 4640c5c9cf9c5ce0c80fd064e12cfd3f30e9f17c

Changed paths:
    devtools/create_project/create_project.cpp


diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index 8a0eab5ad52..327474d5ec8 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -58,10 +58,13 @@
 #include <cstring>
 #include <ctime>
 
-// Disable symbol overrides so that we can use system headers.
-#define FORBIDDEN_SYMBOL_ALLOW_ALL
-#include "common/util.h"
-
+// We can't use the common/util.h header here, since create_project
+// is a standalone tool, and may be built individually from the rest
+// of the devtools.
+#ifdef ARRAYSIZE
+#undef ARRAYSIZE
+#endif
+#define ARRAYSIZE(x) ((int)(sizeof(x) / sizeof(x[0])))
 
 namespace {
 /**




More information about the Scummvm-git-logs mailing list