calc: fix Xcode-only build

Fixes #30381.