Restore compatibility with old vcc versions [backport] (#10415)
Restore compatibility with old vcc versions [backport] (#10415)

Local variables are declared before anything else.

Fixes #10352
dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim