[ObjC] require osx version > 10.12 for cf event engine (#34061)

fixes #34049
pull/34439/head
Hannah Shi 1 year ago committed by GitHub
parent 1091cc3211
commit 22aff69c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/lib/event_engine/cf_engine/cf_engine.cc
  2. 3
      src/core/lib/event_engine/cf_engine/cf_engine.h
  3. 3
      src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc
  4. 3
      src/core/lib/event_engine/cf_engine/cfstream_endpoint.h
  5. 3
      src/core/lib/event_engine/cf_engine/cftype_unique_ref.h
  6. 3
      src/core/lib/event_engine/cf_engine/dns_service_resolver.cc
  7. 3
      src/core/lib/event_engine/cf_engine/dns_service_resolver.h

@ -15,6 +15,8 @@
#include <grpc/support/port_platform.h>
#ifdef GPR_APPLE
#include <AvailabilityMacros.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#include <CoreFoundation/CoreFoundation.h>
@ -215,4 +217,5 @@ EventEngine::TaskHandle CFEventEngine::RunAfterInternal(
} // namespace experimental
} // namespace grpc_event_engine
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#endif // GPR_APPLE

@ -16,6 +16,8 @@
#include <grpc/support/port_platform.h>
#ifdef GPR_APPLE
#include <AvailabilityMacros.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#include <grpc/event_engine/event_engine.h>
@ -81,6 +83,7 @@ class CFEventEngine : public EventEngine,
} // namespace experimental
} // namespace grpc_event_engine
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#endif // GPR_APPLE
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_CF_ENGINE_CF_ENGINE_H

@ -15,6 +15,8 @@
#include <grpc/support/port_platform.h>
#ifdef GPR_APPLE
#include <AvailabilityMacros.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#include "src/core/lib/event_engine/cf_engine/cfstream_endpoint.h"
#include "src/core/lib/event_engine/trace.h"
@ -351,4 +353,5 @@ void CFStreamEndpointImpl::DoWrite(
} // namespace experimental
} // namespace grpc_event_engine
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#endif // GPR_APPLE

@ -16,6 +16,8 @@
#include <grpc/support/port_platform.h>
#ifdef GPR_APPLE
#include <AvailabilityMacros.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#include <CoreFoundation/CoreFoundation.h>
@ -141,6 +143,7 @@ class CFStreamEndpoint : public EventEngine::Endpoint {
} // namespace experimental
} // namespace grpc_event_engine
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#endif // GPR_APPLE
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_CF_ENGINE_CFSTREAM_ENDPOINT_H

@ -16,6 +16,8 @@
#include <grpc/support/port_platform.h>
#ifdef GPR_APPLE
#include <AvailabilityMacros.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#include <CoreFoundation/CoreFoundation.h>
@ -74,6 +76,7 @@ class CFTypeUniqueRef {
} // namespace experimental
} // namespace grpc_event_engine
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#endif // GPR_APPLE
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_CF_ENGINE_CFTYPE_UNIQUE_REF_H

@ -15,6 +15,8 @@
#include <grpc/support/port_platform.h>
#ifdef GPR_APPLE
#include <AvailabilityMacros.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#include "absl/strings/str_format.h"
@ -226,4 +228,5 @@ void DNSServiceResolverImpl::Shutdown() {
} // namespace experimental
} // namespace grpc_event_engine
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#endif // GPR_APPLE

@ -16,6 +16,8 @@
#include <grpc/support/port_platform.h>
#ifdef GPR_APPLE
#include <AvailabilityMacros.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#include <CoreFoundation/CoreFoundation.h>
#include <dns_sd.h>
@ -112,6 +114,7 @@ class DNSServiceResolver : public EventEngine::DNSResolver {
} // namespace experimental
} // namespace grpc_event_engine
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
#endif // GPR_APPLE
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_CF_ENGINE_DNS_SERVICE_RESOLVER_H

Loading…
Cancel
Save