diff --git a/absl/base/config.h b/absl/base/config.h
index f12f84fde6b288082b56041466611f93a63fdc66..406a931f4858cb331b6477fc3d48d3f30ec0ba96 100644
--- a/absl/base/config.h
+++ b/absl/base/config.h
@@ -375,7 +375,7 @@
 // https://github.com/abseil/abseil-cpp/issues/207 and
 // https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
 #if defined(__APPLE__) && defined(_LIBCPP_VERSION) && \
-    defined(__MAC_OS_X_VERSION_MIN_REQUIRED__) &&     \
+    defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
     __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101400
 #define ABSL_INTERNAL_MACOS_CXX17_TYPES_UNAVAILABLE 1
 #else