aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-05-21 14:44:54 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-05-22 08:53:50 -0700
commitccbf6ae7457d18a2aa755b4cf881af4ce87ec850 (patch)
tree1642080370a8631fb13d83d4bee75d7544a9f6e1
parent328099a79713524c548d1431cf52259dba5d7d6e (diff)
error_apple is CFStream only
-rw-r--r--src/core/lib/iomgr/error_apple.cc4
-rw-r--r--src/core/lib/iomgr/error_apple.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lib/iomgr/error_apple.cc b/src/core/lib/iomgr/error_apple.cc
index e8f98bf0ba..42ab6ad4b8 100644
--- a/src/core/lib/iomgr/error_apple.cc
+++ b/src/core/lib/iomgr/error_apple.cc
@@ -18,7 +18,7 @@
#include <grpc/support/port_platform.h>
-#ifdef GPR_APPLE
+#ifdef GRPC_CFSTREAM
#include <CoreFoundation/CoreFoundation.h>
#include <grpc/support/alloc.h>
@@ -46,4 +46,4 @@ grpc_error* grpc_error_create_from_cferror(const char* file, int line, void* arg
gpr_free(error_msg);
return return_error;
}
-#endif // GPR_APPLE
+#endif /* GRPC_CFSTREAM */
diff --git a/src/core/lib/iomgr/error_apple.h b/src/core/lib/iomgr/error_apple.h
index f266192239..276ec77d35 100644
--- a/src/core/lib/iomgr/error_apple.h
+++ b/src/core/lib/iomgr/error_apple.h
@@ -19,13 +19,13 @@
#ifndef GRPC_CORE_LIB_IOMGR_ERROR_APPLE_H
#define GRPC_CORE_LIB_IOMGR_ERROR_APPLE_H
-#ifdef GPR_APPLE
+#ifdef GRPC_CFSTREAM
// Create an error from Apple Core Foundation CFError object
#define GRPC_ERROR_CREATE_FROM_CFERROR(error, desc) \
grpc_error_create_from_cferror(__FILE__, __LINE__, \
static_cast<void*>((error)), (desc))
grpc_error* grpc_error_create_from_cferror(const char* file, int line,
void* arg, const char* desc);
-#endif
+#endif /* GRPC_CFSTREAM */
#endif /* GRPC_CORE_LIB_IOMGR_ERROR_APPLE_H */