summaryrefslogtreecommitdiff
path: root/absl/base/internal
diff options
context:
space:
mode:
authorGravatar Dino Radakovic <dinor@google.com>2022-06-09 11:20:41 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-06-09 11:21:39 -0700
commitdb609075875320c32a197ae633302c50bead6e39 (patch)
tree4107c1362f9ab1317fba8b27f3ded9b10f933c15 /absl/base/internal
parent9eff97861b88999428d1254f95c83d94a2e95944 (diff)
absl/base/internal/invoke.h: Use ABSL_INTERNAL_CPLUSPLUS_LANG for language version guard
PiperOrigin-RevId: 453970585 Change-Id: Iac23eb88ea676efc822f001020b1cc2c255dbbc1
Diffstat (limited to 'absl/base/internal')
-rw-r--r--absl/base/internal/invoke.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/absl/base/internal/invoke.h b/absl/base/internal/invoke.h
index 4a644c68..018b1af3 100644
--- a/absl/base/internal/invoke.h
+++ b/absl/base/internal/invoke.h
@@ -39,7 +39,7 @@
#include "absl/base/config.h"
-#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
+#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L
#include <functional>
@@ -55,7 +55,7 @@ using std::is_invocable_r;
ABSL_NAMESPACE_END
} // namespace absl
-#else // __cplusplus >= 201703L
+#else // ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L
#include <algorithm>
#include <type_traits>
@@ -226,6 +226,6 @@ using is_invocable_r = IsInvocableRImpl<void, R, F, Args...>;
ABSL_NAMESPACE_END
} // namespace absl
-#endif // __cplusplus >= 201703L
+#endif // ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L
#endif // ABSL_BASE_INTERNAL_INVOKE_H_