From d28f97e6555a6d2b0b4cf838f00c3704bfbe6788 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 12 Nov 2022 20:10:58 -0700 Subject: [PATCH] cmdlib: use include unconditionally --- include/common/cmdlib.hh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/include/common/cmdlib.hh b/include/common/cmdlib.hh index 65e53e80..b4a93ae0 100644 --- a/include/common/cmdlib.hh +++ b/include/common/cmdlib.hh @@ -108,25 +108,8 @@ time_point I_FloatTime(); * BYTE ORDER FUNCTIONS * ============================================================================ */ -// C++20 polyfill -#if defined(__cpp_lib_endian) && __cpp_lib_endian >= 201907L -#include -#else -namespace std -{ -enum class endian -{ - little = 0, - big = 1, -#ifdef __BIG_ENDIAN__ - native = big -#else - native = little -#endif -}; -} // namespace std -#endif +#include // Binary streams; by default, streams use the native endianness // (unchanged bytes) but can be changed to a specific endianness