aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/abseil-cpp/patches/fix-cuda-10.patch
blob: 4b8f88060051e5e518805759b65a5ebd66de2952 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/absl/types/compare.h	(index)
+++ b/absl/types/compare.h	(working tree)
@@ -69,7 +69,7 @@ using value_type = int8_t;
 
 class OnlyLiteralZero {
  public:
-#if ABSL_HAVE_ATTRIBUTE(enable_if)
+#if ABSL_HAVE_ATTRIBUTE(enable_if) && !defined(__CUDACC__)
   // On clang, we can avoid triggering modernize-use-nullptr by only enabling
   // this overload when the value is a compile time integer constant equal to 0.
   //