pytorch/c10/macros
James Donald a1d0db1c60 [pytorch] Fix MSVC unexpected tokens following preprocessor directive (#105922)
Summary:
Fix this warning:
```
caffe2\c10\macros\Macros.h(138): warning C4067: unexpected tokens following preprocessor directive - expected a newline
```
`caffe2/c10/util/variant.h` already has a similar to check and define a stub for `__has_attribute(x)`, so this would not be new to caffe2/pytorch.

Test Plan: CI should complete, still with plenty of caffe2 warnings but this one should be gone from the Windows build log

Differential Revision: D47735319

Pull Request resolved: https://github.com/pytorch/pytorch/pull/105922
Approved by: https://github.com/kit1980
2023-07-27 06:03:31 +00:00
..
BUILD.bazel port //c10/macros to common build structure (#70852) 2022-01-19 20:56:12 +00:00
build.bzl run buildifier on unified build files (#98141) 2023-04-04 00:37:19 +00:00
cmake_configure_file.bzl use cross-platform sed command in cmake_configure_file (#73589) 2022-03-02 12:28:51 +00:00
cmake_macros.h.in
Export.h
Macros.h [pytorch] Fix MSVC unexpected tokens following preprocessor directive (#105922) 2023-07-27 06:03:31 +00:00