[Scummvm-git-logs] scummvm master -> 390267eb67adb20af7d46065f4ea70292c075394
sev-
noreply at scummvm.org
Wed Dec 2 09:39:22 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:
390267eb67 NGI: Fix build on AmigaOS: Box2D uses the ScummVM integer types
Commit: 390267eb67adb20af7d46065f4ea70292c075394
https://github.com/scummvm/scummvm/commit/390267eb67adb20af7d46065f4ea70292c075394
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-12-02T10:37:41+01:00
Commit Message:
NGI: Fix build on AmigaOS: Box2D uses the ScummVM integer types
Changed paths:
engines/ngi/box2d/Collision/b2TimeOfImpact.cpp
engines/ngi/box2d/Common/b2BlockAllocator.cpp
engines/ngi/box2d/Common/b2Settings.cpp
engines/ngi/box2d/Common/b2Settings.h
diff --git a/engines/ngi/box2d/Collision/b2TimeOfImpact.cpp b/engines/ngi/box2d/Collision/b2TimeOfImpact.cpp
index bf65be442b2..f35a855fb73 100644
--- a/engines/ngi/box2d/Collision/b2TimeOfImpact.cpp
+++ b/engines/ngi/box2d/Collision/b2TimeOfImpact.cpp
@@ -22,8 +22,6 @@
#include "engines/ngi/box2d/Collision/Shapes/b2CircleShape.h"
#include "engines/ngi/box2d/Collision/Shapes/b2PolygonShape.h"
-#include <cstdio>
-
namespace NGI {
using namespace std;
diff --git a/engines/ngi/box2d/Common/b2BlockAllocator.cpp b/engines/ngi/box2d/Common/b2BlockAllocator.cpp
index a6f402d8420..5968ce9855c 100644
--- a/engines/ngi/box2d/Common/b2BlockAllocator.cpp
+++ b/engines/ngi/box2d/Common/b2BlockAllocator.cpp
@@ -20,7 +20,6 @@
#include <cstdlib>
#include <climits>
#include <cstring>
-#include <memory>
namespace NGI {
using namespace std;
diff --git a/engines/ngi/box2d/Common/b2Settings.cpp b/engines/ngi/box2d/Common/b2Settings.cpp
index c136153e6cb..662136b0737 100644
--- a/engines/ngi/box2d/Common/b2Settings.cpp
+++ b/engines/ngi/box2d/Common/b2Settings.cpp
@@ -17,9 +17,9 @@
*/
#include "engines/ngi/box2d/Common/b2Settings.h"
-#include <cstdlib>
-#include <cstdio>
-#include <cstdarg>
+
+#include "common/debug.h"
+#include "common/str.h"
namespace NGI {
@@ -41,8 +41,9 @@ void b2Log(const char* string, ...)
{
va_list args;
va_start(args, string);
- vprintf(string, args);
+ const Common::String message = Common::String::vformat(string, args);
va_end(args);
+ debugN("%s", message.c_str());
}
} // End of namespace NGI
diff --git a/engines/ngi/box2d/Common/b2Settings.h b/engines/ngi/box2d/Common/b2Settings.h
index 9ab86a50e05..7f2c75972ca 100644
--- a/engines/ngi/box2d/Common/b2Settings.h
+++ b/engines/ngi/box2d/Common/b2Settings.h
@@ -19,6 +19,8 @@
#ifndef B2_SETTINGS_H
#define B2_SETTINGS_H
+#include "common/scummsys.h"
+
#include <cassert>
#include <float.h>
#include <stddef.h>
@@ -28,12 +30,7 @@ namespace NGI {
#define B2_NOT_USED(x) ((void)(x))
#define b2Assert(A) assert(A)
-typedef signed char int8;
-typedef signed short int16;
-typedef signed int int32;
-typedef unsigned char uint8;
-typedef unsigned short uint16;
-typedef unsigned int uint32;
+// ScummVM: the integer types come from common/scummsys.h (int32 is long on some ports)
typedef float float32;
typedef double float64;
More information about the Scummvm-git-logs
mailing list