mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Summary: Introduce DISABLED_ON_WINDOWS macro, that adds `DISABLED_` prefix to string if compiled for Win32 Pull Request resolved: https://github.com/pytorch/pytorch/pull/35549 Test Plan: CI Differential Revision: D20700915 Pulled By: malfet fbshipit-source-id: adddfe2db89b7139093ceef6899862bce0adcf2d
10 lines
176 B
C
10 lines
176 B
C
#ifndef C10_TEST_CORE_MACROS_MACROS_H_
|
|
|
|
#ifdef _WIN32
|
|
#define DISABLED_ON_WINDOWS(x) DISABLED_##x
|
|
#else
|
|
#define DISABLED_ON_WINDOWS(x) x
|
|
#endif
|
|
|
|
#endif // C10_MACROS_MACROS_H_
|