Skip to content

Commit 995e1c5

Browse files
committed
Stop -Wmacro-redefined for TORCH_API
No longer seeing these warnings during local CMake build. ghstack-source-id: 3cf79dc ghstack-comment-id: 2652272488 Pull Request resolved: #8392
1 parent 85231f5 commit 995e1c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegen/macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
#pragma once
1010
// TODO(T157709949) remove this file
11-
#ifndef USE_ATEN_LIB
11+
#if !defined(USE_ATEN_LIB) && !defined(TORCH_API)
1212
#define TORCH_API
1313
#endif

0 commit comments

Comments
 (0)