From 73e7f0fe6d5ea2c75ad452effe9d7b95dd323ea2 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 5 Jan 2023 12:16:21 +0100 Subject: Core/Misc: Added a include hack for msvc to use only c++17 bits from it (cherry picked from commit 585900f42d064b9f6adc08015605931163ea79c8) --- src/common/Utilities/ByteConverter.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/common/Utilities/ByteConverter.h') diff --git a/src/common/Utilities/ByteConverter.h b/src/common/Utilities/ByteConverter.h index 59be4adb86b..d9b74b83264 100644 --- a/src/common/Utilities/ByteConverter.h +++ b/src/common/Utilities/ByteConverter.h @@ -23,14 +23,15 @@ */ #include "Define.h" -#include namespace ByteConverter { template inline void convert(char *val) { - std::swap(*val, *(val + T - 1)); + char tmp = *val; + *val = *(val + T - 1); + *(val + T - 1) = tmp; convert(val + 1); } -- cgit v1.2.3