[UE 5.6] C4668 on UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7 during Editor build (Win64)

On Windows with UE 5.7, Editor build fails with C4668 saying UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7 is not defined. It triggers inside MallocBinnedCommon.h while compiling my module/plugin.

Environment

  • Toolchain: VS 2022 14.38.33145 + Windows SDK 10.0.22621 (AutoSDK)
  • Target: GamerEditor-Win64-Development (91 actions in parallel executor)

Log excerpt

error C4668: 'UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7' is not defined ...
C:\UnrealEngine\Engine\Source\Runtime\Core\Public\HAL\MallocBinnedCommon.h(1005,5)
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7
    ^

Samples across multiple TUs:

Questions

  1. For UE 5.7, what is the correct IncludeOrderVersion to use in .Target.cs? Do we need to bump it to the 5.7 value when migrating?
  2. Is C4668 being treated as error by design in 5.7 or is it a toolchain flag? What’s the recommended fix (update include order vs. suppress warning)?
  3. Any official guidance to ensure CoreMinimal.h is included first without touching internal headers?
  4. Migration tips for modules/plugins beyond toggling IncludeOrderVersion/DefaultBuildSettings?

fulllog