mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-07 10:11:43 -04:00
Fix errors for msvc
Use less strict compiler flags instead of modifying source code Add ugly defines so MSVC stops complaining about zero length arrays
This commit is contained in:
@@ -52,7 +52,12 @@ struct ResFONT {
|
||||
/* 0x1A */ u16 textureWidth;
|
||||
/* 0x1C */ u16 textureHeight;
|
||||
/* 0x1E */ u16 padding;
|
||||
#ifdef _MSVC_LANG
|
||||
u8* __get_data() const { return (u8*)(this + 1); }
|
||||
__declspec(property(get = __get_data)) u8* data;
|
||||
#else
|
||||
/* 0x20 */ u8 data[];
|
||||
#endif
|
||||
};
|
||||
|
||||
/* 0x00 */ u64 magic;
|
||||
|
||||
Reference in New Issue
Block a user