Eliminate some C++11 checks (#126308)

Test Plan: Sandcastle

Reviewed By: palmje

Differential Revision: D57246912

Pull Request resolved: https://github.com/pytorch/pytorch/pull/126308
Approved by: https://github.com/Skylion007
This commit is contained in:
Richard Barnes 2024-05-16 22:37:45 +00:00 committed by PyTorch MergeBot
parent f17572fcf6
commit c226839f5c
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
#include <c10/util/floating_point_utils.h> #include <c10/util/floating_point_utils.h>
#include <type_traits> #include <type_traits>
#if defined(__cplusplus) && (__cplusplus >= 201103L) #if defined(__cplusplus)
#include <cmath> #include <cmath>
#include <cstdint> #include <cstdint>
#elif !defined(__OPENCL_VERSION__) #elif !defined(__OPENCL_VERSION__)

View File

@ -22,7 +22,7 @@
#include <c10/util/floating_point_utils.h> #include <c10/util/floating_point_utils.h>
#include <type_traits> #include <type_traits>
#if defined(__cplusplus) && (__cplusplus >= 201103L) #if defined(__cplusplus)
#include <cstdint> #include <cstdint>
#elif !defined(__OPENCL_VERSION__) #elif !defined(__OPENCL_VERSION__)
#include <math.h> #include <math.h>

View File

@ -21,7 +21,7 @@
#include <c10/util/TypeSafeSignMath.h> #include <c10/util/TypeSafeSignMath.h>
#include <c10/util/floating_point_utils.h> #include <c10/util/floating_point_utils.h>
#if defined(__cplusplus) && (__cplusplus >= 201103L) #if defined(__cplusplus)
#include <cstdint> #include <cstdint>
#elif !defined(__OPENCL_VERSION__) #elif !defined(__OPENCL_VERSION__)
#include <math.h> #include <math.h>

View File

@ -16,7 +16,7 @@
#include <c10/util/floating_point_utils.h> #include <c10/util/floating_point_utils.h>
#include <type_traits> #include <type_traits>
#if defined(__cplusplus) && (__cplusplus >= 201103L) #if defined(__cplusplus)
#include <cmath> #include <cmath>
#elif !defined(__OPENCL_VERSION__) #elif !defined(__OPENCL_VERSION__)
#include <math.h> #include <math.h>