aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2017-01-24 09:40:21 -0800
committerGravatar Ken Payson <kpayson@google.com>2017-01-24 09:40:21 -0800
commit45a520f51fb020e5bff992b71efa702d812134db (patch)
treed68265f5b0ccb024ce4a8068fb15c2d8b8fe3a32 /include
parent196fdc422c4f8d017a22c3465fda8606a2d1ee07 (diff)
Special case Python build for inet_ntop
Diffstat (limited to 'include')
-rw-r--r--include/grpc/impl/codegen/port_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h
index 4633fa12e8..e565cd31d7 100644
--- a/include/grpc/impl/codegen/port_platform.h
+++ b/include/grpc/impl/codegen/port_platform.h
@@ -297,6 +297,10 @@
#endif
#ifdef _MSC_VER
+#ifdef _PYTHON_MSVC
+// The Python 3.5 Windows runtime is missing InetNtop
+#define GPR_WIN_INET_NTOP
+#endif // _PYTHON_MSVC
#if _MSC_VER < 1700
typedef __int8 int8_t;
typedef __int16 int16_t;