ensure c10/macros included before using (#26439)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26439
C10_MOBILE / FEATURE_TORCH_MOBILE are checked in EnableNamedTensor.h but
NamedTensor.h includes it at very beginning - for internal build it's
fine as C10_MOBILE / FEATURE_TORCH_MOBILE are set as compiler flags, but
for cmake build it relies on c10/macros/Macros.h header to derive these
macros from other macros like __ANDROID__, so it won't work as expected.
Test Plan:
- build locally;
- will check CI;
Differential Revision: D17466581
Pulled By: ljk53
fbshipit-source-id: 317510bcc077782ec2d22e23b1aaa0cb77cb73a9