aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-03-12 11:10:09 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-03-12 11:43:00 -0700
commit4b37fb0e4c8266912831e42b2cf4055d3c81d00a (patch)
tree0a5bdbc4804389f7c006d2a629cb6688baa50d05 /include/grpc/support
parentec154f6f2de6461e712b7679ebe96035469d46d0 (diff)
Stop including inttypes.h in gRPC core public header in Apple platforms
Diffstat (limited to 'include/grpc/support')
-rw-r--r--include/grpc/support/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc/support/log.h b/include/grpc/support/log.h
index ccb4b304cc..622beacb98 100644
--- a/include/grpc/support/log.h
+++ b/include/grpc/support/log.h
@@ -21,7 +21,13 @@
#include <grpc/impl/codegen/port_platform.h>
+/* On Apple platforms, including inttypes.h in a public header prevents gRPC
+ * core to be built as framework. We rule out this inclusion on Apple platforms.
+ */
+#if !defined(__APPLE__)
#include <inttypes.h>
+#endif
+
#include <stdarg.h>
#include <stdlib.h> /* for abort() */