summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/ObjectAdapter.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2018-09-21 14:15:22 -0400
committerBernard Normier <bernard@zeroc.com>2018-09-21 14:15:22 -0400
commit4aea9fc787892842af17d119332a7f6fef2f35c4 (patch)
treea6beecce9a467372acb93a2cb7bf8735862f59ed /python/modules/IcePy/ObjectAdapter.cpp
parentMore fixes for Xcode 10 (diff)
downloadice-4aea9fc787892842af17d119332a7f6fef2f35c4.tar.bz2
ice-4aea9fc787892842af17d119332a7f6fef2f35c4.tar.xz
ice-4aea9fc787892842af17d119332a7f6fef2f35c4.zip
PyThread_get_thread_ident returns unsigned long in Python 3.7 and long in older versions
Diffstat (limited to 'python/modules/IcePy/ObjectAdapter.cpp')
-rw-r--r--python/modules/IcePy/ObjectAdapter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/modules/IcePy/ObjectAdapter.cpp b/python/modules/IcePy/ObjectAdapter.cpp
index 74775100df4..ec06cce6961 100644
--- a/python/modules/IcePy/ObjectAdapter.cpp
+++ b/python/modules/IcePy/ObjectAdapter.cpp
@@ -31,7 +31,11 @@
using namespace std;
using namespace IcePy;
+#if PY_VERSION_HEX < 0x03070000
+static long _mainThreadId;
+#else
static unsigned long _mainThreadId;
+#endif
namespace IcePy
{