- return YGSize{
- .width = measuredWidth.AsDecimal(),
- .height = measuredHeight.AsDecimal(),
- };
+ // Create struct instance first and manually set params to support all compiler versions
+ YGSize ygSize;
+ ygSize.width = measuredWidth.AsDecimal();
+ ygSize.height = measuredHeight.AsDecimal();
+ return ygSize;