diff --git a/paddle/fluid/operators/spectral_op.h b/paddle/fluid/operators/spectral_op.h index 9e32b5d8ff8ef..e549c4a454b19 100644 --- a/paddle/fluid/operators/spectral_op.h +++ b/paddle/fluid/operators/spectral_op.h @@ -10,6 +10,7 @@ limitations under the License. */ #pragma once +#define NOMINMAX // to use std::min std::max correctly on windows #include #include #include