Fix __STDC_FORMAT_MACROS redefinition issue for TypeDerived (#39608)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39608
As title. When adding a new build mode TypeDerived failed to compile due to macro redefinition. Conditional define fixes this issue.
Test Plan: Tests pass.
Reviewed By: iseeyuan
Differential Revision: D21914975
fbshipit-source-id: 12e04af29b7510106e8e47fa48e30b829aeff467