From 4aea9fc787892842af17d119332a7f6fef2f35c4 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Fri, 21 Sep 2018 14:15:22 -0400 Subject: PyThread_get_thread_ident returns unsigned long in Python 3.7 and long in older versions --- python/modules/IcePy/Communicator.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/modules/IcePy/Communicator.cpp') diff --git a/python/modules/IcePy/Communicator.cpp b/python/modules/IcePy/Communicator.cpp index 559a46097c6..df6af7330a1 100644 --- a/python/modules/IcePy/Communicator.cpp +++ b/python/modules/IcePy/Communicator.cpp @@ -39,7 +39,11 @@ using namespace std; using namespace IcePy; +#if PY_VERSION_HEX < 0x03070000 +static long _mainThreadId; +#else static unsigned long _mainThreadId; +#endif typedef map CommunicatorMap; static CommunicatorMap _communicatorMap; -- cgit v1.2.3