diff --git a/include/coreinit/filesystem.h b/include/coreinit/filesystem.h index 3616407..175473c 100644 --- a/include/coreinit/filesystem.h +++ b/include/coreinit/filesystem.h @@ -153,7 +153,7 @@ struct FSCmdBlock }; WUT_CHECK_SIZE(FSCmdBlock, 0xA80); -struct __attribute__((packed)) FSStat +struct WUT_PACKED FSStat { FSStatFlags flags; FSMode mode; diff --git a/include/coreinit/mcp.h b/include/coreinit/mcp.h index d027a20..ec3a635 100644 --- a/include/coreinit/mcp.h +++ b/include/coreinit/mcp.h @@ -23,7 +23,7 @@ typedef enum MCPInstallTarget MCP_INSTALL_TARGET_USB = 1, } MCPInstallTarget; -struct __attribute__((__packed__)) MCPInstallProgress +struct WUT_PACKED MCPInstallProgress { uint32_t inProgress; uint64_t tid; diff --git a/include/wut_structsize.h b/include/wut_structsize.h index f661235..fb89b37 100644 --- a/include/wut_structsize.h +++ b/include/wut_structsize.h @@ -26,5 +26,8 @@ #define WUT_UNKNOWN_BYTES(Size) char WUT_PP_CAT(__unk, __COUNTER__) [Size] #define WUT_PADDING_BYTES(Size) WUT_UNKNOWN_BYTES(Size) -//! Unknown struct size +// Unknown struct size #define WUT_UNKNOWN_SIZE(x) + +// Marks a struct as packed +#define WUT_PACKED __attribute__((__packed__))