From f290cf2f9efef5709981d17aeb121f27648fa6a6 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Thu, 22 Feb 2024 19:12:36 +0100 Subject: [PATCH] Network/ENetProtocol: Fix missing inline keyword --- include/Nazara/Network/ENetProtocol.inl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/Nazara/Network/ENetProtocol.inl b/include/Nazara/Network/ENetProtocol.inl index ec4d50d05..207ad3b2d 100644 --- a/include/Nazara/Network/ENetProtocol.inl +++ b/include/Nazara/Network/ENetProtocol.inl @@ -2,30 +2,29 @@ // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Export.hpp - namespace Nz { - UInt32 ENetTimeDifference(UInt32 a, UInt32 b) + inline UInt32 ENetTimeDifference(UInt32 a, UInt32 b) { return (ENetTimeLess(a, b)) ? b - a : a - b; } - bool ENetTimeLess(UInt32 a, UInt32 b) + inline bool ENetTimeLess(UInt32 a, UInt32 b) { return (a - b >= ENetTimeOverflow); } - bool ENetTimeLessEqual(UInt32 a, UInt32 b) + inline bool ENetTimeLessEqual(UInt32 a, UInt32 b) { return !ENetTimeGreater(a, b); } - bool ENetTimeGreater(UInt32 a, UInt32 b) + inline bool ENetTimeGreater(UInt32 a, UInt32 b) { return ENetTimeLess(b, a); } - bool ENetTimeGreaterEqual(UInt32 a, UInt32 b) + inline bool ENetTimeGreaterEqual(UInt32 a, UInt32 b) { return !ENetTimeLess(a, b); }