Image: Don't use libjpeg stdio functions

Fixes I/O in debug builds.
This commit is contained in:
Stenzek
2024-04-03 22:53:35 +10:00
parent cb6be52404
commit 59a13d91ea
3 changed files with 128 additions and 14 deletions

View File

@ -224,3 +224,6 @@ static constexpr u32 HOST_PAGE_SHIFT = 12;
static_cast<std::underlying_type<type_>::type>(rhs)); \
return lhs; \
}
// Compute the address of a base type given a field offset.
#define BASE_FROM_RECORD_FIELD(ptr, base_type, field) ((base_type*)(((char*)ptr) - offsetof(base_type, field)))