From dc5a6ce4094e2ee99f738859876cc0a04732ef35 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 1 Feb 2025 11:36:24 -0500 Subject: [PATCH] Jpeg: Allow loading on big endian --- src/image/formats/Jpeg.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/image/formats/Jpeg.cpp b/src/image/formats/Jpeg.cpp index 6ba39bc..0b5b714 100644 --- a/src/image/formats/Jpeg.cpp +++ b/src/image/formats/Jpeg.cpp @@ -9,9 +9,6 @@ std::expected JPEG::createSurfaceFromJPEG(const s if (!std::filesystem::exists(path)) return std::unexpected("loading jpeg: file doesn't exist"); - if (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__) - return std::unexpected("loading jpeg: cannot load on big endian"); - std::ifstream file(path, std::ios::binary | std::ios::ate); file.exceptions(std::ifstream::failbit | std::ifstream::badbit | std::ifstream::eofbit); std::vector bytes(file.tellg());