Image: Don't use libjpeg stdio functions

Fixes I/O in debug builds.
This commit is contained in:
Stenzek committed 2024-04-03 23:01:53 +10:00
1 parent cb6be52404
commit 59a13d91ea
3 files changed
+128 -14

No files matched your search

+3
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)))