fixing jar so it compiles on vs2010

This commit is contained in:
NishiOwO 2025-04-20 15:58:44 +09:00
parent 2d2757b4ef
commit f2ede0e025
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343

View File

@ -727,7 +727,7 @@ gf_uint64_t jar_xm_get_latest_trigger_of_channel(jar_xm_context_t* ctx, gf_uint1
#define READ_U32(offset) ((gf_uint32_t)READ_U16(offset) | ((gf_uint32_t)READ_U16((offset) + 2) << 16)) #define READ_U32(offset) ((gf_uint32_t)READ_U16(offset) | ((gf_uint32_t)READ_U16((offset) + 2) << 16))
#define READ_MEMCPY(ptr, offset, length) memcpy_pad(ptr, length, moddata, moddata_length, offset) #define READ_MEMCPY(ptr, offset, length) memcpy_pad(ptr, length, moddata, moddata_length, offset)
static inline void memcpy_pad(void* dst, size_t dst_len, const void* src, size_t src_len, size_t offset) { static void memcpy_pad(void* dst, size_t dst_len, const void* src, size_t src_len, size_t offset) {
gf_uint8_t* dst_c = dst; gf_uint8_t* dst_c = dst;
const gf_uint8_t* src_c = src; const gf_uint8_t* src_c = src;