From 03b75da5bb1d6564949b1cb5b55a30b32760f5c0 Mon Sep 17 00:00:00 2001 From: hax0kartik Date: Mon, 5 Jun 2023 21:30:10 +0530 Subject: [PATCH] CRAB: Use scummsys instead of including standard library headers directly --- engines/crab/PathfindingGrid.h | 1 - engines/crab/common_header.h | 3 +-- engines/crab/numstr.h | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/engines/crab/PathfindingGrid.h b/engines/crab/PathfindingGrid.h index 46cc81d1e55d..07580fad624c 100644 --- a/engines/crab/PathfindingGrid.h +++ b/engines/crab/PathfindingGrid.h @@ -31,7 +31,6 @@ #ifndef CRAB_PATHFINDINGGRID_H #define CRAB_PATHFINDINGGRID_H -#include #include "crab/PathfindingGraphNode.h" #include "crab/common_header.h" diff --git a/engines/crab/common_header.h b/engines/crab/common_header.h index ad2dd5659b4d..6cd75093d379 100644 --- a/engines/crab/common_header.h +++ b/engines/crab/common_header.h @@ -31,8 +31,7 @@ #ifndef CRAB_COMMON_HEADER_H #define CRAB_COMMON_HEADER_H -#include - +#include "common/scummsys.h" #include "common/path.h" #include "common/str.h" #include "common/hashmap.h" diff --git a/engines/crab/numstr.h b/engines/crab/numstr.h index e5738ae4d6e9..c25c456b2a3b 100644 --- a/engines/crab/numstr.h +++ b/engines/crab/numstr.h @@ -30,7 +30,6 @@ #ifndef CRAB_NUMSTR_H #define CRAB_NUMSTR_H -#include #include "crab/common_header.h" namespace Crab { @@ -64,7 +63,7 @@ Common::String NumberToString(T Number) { return revStr; } -template +template inline T StringToNumber(char *Text) { int res = 0; if (sscanf(Text, "%d", &res) > 0)