From 111d25901593e86f2daf231a04041d7de938a05b Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Mon, 22 Aug 2022 13:40:54 +0200 Subject: [PATCH] ALL: Add limits.h for all codebase --- backends/audiocd/macosx/macosx-audiocd.cpp | 1 - backends/platform/android/portdefs.h | 1 + backends/platform/dc/portdefs.h | 1 + backends/platform/ds/portdefs.h | 1 + backends/platform/n64/portdefs.h | 1 + backends/platform/psp/portdefs.h | 1 + backends/platform/sdl/riscos/riscos-utils.cpp | 1 - backends/saves/default/default-saves.h | 1 - base/commandLine.cpp | 2 -- common/random.cpp | 2 -- common/scummsys.h | 1 + engines/stark/console.cpp | 1 - test/audio/timestamp.h | 2 -- 13 files changed, 6 insertions(+), 10 deletions(-) diff --git a/backends/audiocd/macosx/macosx-audiocd.cpp b/backends/audiocd/macosx/macosx-audiocd.cpp index e62dcd01b68..c05a0f549f0 100644 --- a/backends/audiocd/macosx/macosx-audiocd.cpp +++ b/backends/audiocd/macosx/macosx-audiocd.cpp @@ -44,7 +44,6 @@ #include #include -#include #include "common/scummsys.h" diff --git a/backends/platform/android/portdefs.h b/backends/platform/android/portdefs.h index 13a42c4f01a..47cb04be793 100644 --- a/backends/platform/android/portdefs.h +++ b/backends/platform/android/portdefs.h @@ -29,6 +29,7 @@ #include #include #include +#include #define _USE_MATH_DEFINES #include #include diff --git a/backends/platform/dc/portdefs.h b/backends/platform/dc/portdefs.h index bb1b0f72d88..da8f10334d6 100644 --- a/backends/platform/dc/portdefs.h +++ b/backends/platform/dc/portdefs.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include diff --git a/backends/platform/ds/portdefs.h b/backends/platform/ds/portdefs.h index 38e25f86b83..251b4951dbb 100644 --- a/backends/platform/ds/portdefs.h +++ b/backends/platform/ds/portdefs.h @@ -39,6 +39,7 @@ typedef unsigned int uint; #include #include #include +#include #include #include diff --git a/backends/platform/n64/portdefs.h b/backends/platform/n64/portdefs.h index 7f769227765..d43e13e48b9 100644 --- a/backends/platform/n64/portdefs.h +++ b/backends/platform/n64/portdefs.h @@ -32,6 +32,7 @@ #include // No assert.h #include +#include #include #include diff --git a/backends/platform/psp/portdefs.h b/backends/platform/psp/portdefs.h index eb10d71ee11..d6d10e79ee4 100644 --- a/backends/platform/psp/portdefs.h +++ b/backends/platform/psp/portdefs.h @@ -38,6 +38,7 @@ #include #include #include +#include #include #include diff --git a/backends/platform/sdl/riscos/riscos-utils.cpp b/backends/platform/sdl/riscos/riscos-utils.cpp index 07f63938607..68113023de8 100644 --- a/backends/platform/sdl/riscos/riscos-utils.cpp +++ b/backends/platform/sdl/riscos/riscos-utils.cpp @@ -23,7 +23,6 @@ #include "backends/platform/sdl/riscos/riscos-utils.h" #include -#include namespace RISCOS_Utils { diff --git a/backends/saves/default/default-saves.h b/backends/saves/default/default-saves.h index 1e52d4b9bad..d0058e52774 100644 --- a/backends/saves/default/default-saves.h +++ b/backends/saves/default/default-saves.h @@ -27,7 +27,6 @@ #include "common/str.h" #include "common/fs.h" #include "common/hash-str.h" -#include /** * Provides a default savefile manager implementation for common platforms. diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 7dc796d88fd..831eb10d5fd 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -24,8 +24,6 @@ #define FORBIDDEN_SYMBOL_EXCEPTION_exit -#include - #include "engines/advancedDetector.h" #include "engines/metaengine.h" #include "base/commandLine.h" diff --git a/common/random.cpp b/common/random.cpp index 0b792c8b2f3..d87881d883e 100644 --- a/common/random.cpp +++ b/common/random.cpp @@ -19,8 +19,6 @@ * */ -#include - #include "common/random.h" #include "common/system.h" #include "gui/EventRecorder.h" diff --git a/common/scummsys.h b/common/scummsys.h index bfc3e0dc613..10384dc73d1 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -123,6 +123,7 @@ #include #include #include + #include // MSVC does not define M_PI, M_SQRT2 and other math defines by default. // _USE_MATH_DEFINES must be defined in order to have these defined, thus // we enable it here. For more information, check: diff --git a/engines/stark/console.cpp b/engines/stark/console.cpp index 42e0147e79e..908143ee422 100644 --- a/engines/stark/console.cpp +++ b/engines/stark/console.cpp @@ -41,7 +41,6 @@ #include "engines/stark/services/staticprovider.h" #include "engines/stark/tools/decompiler.h" -#include #include "common/file.h" namespace Stark { diff --git a/test/audio/timestamp.h b/test/audio/timestamp.h index ec42a55ec4a..61c54d9e1b1 100644 --- a/test/audio/timestamp.h +++ b/test/audio/timestamp.h @@ -2,8 +2,6 @@ #include "audio/timestamp.h" -#include - class TimestampTestSuite : public CxxTest::TestSuite { public: