diff options
author | Benoit Foucher <benoit@zeroc.com> | 2020-11-10 16:13:51 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2020-11-10 16:13:51 +0100 |
commit | d64e8788de81193e2d00aaefaac8cf90ddc4baec (patch) | |
tree | 9899aa528f03408800f720d4781914fe63bc20bf /python | |
parent | Fix Xcode 12 build failures (#1120) (diff) | |
download | ice-d64e8788de81193e2d00aaefaac8cf90ddc4baec.tar.bz2 ice-d64e8788de81193e2d00aaefaac8cf90ddc4baec.tar.xz ice-d64e8788de81193e2d00aaefaac8cf90ddc4baec.zip |
Fixed iOS test controller Xcode project for Xcode 12 and Python 3.9 fix
Diffstat (limited to 'python')
-rw-r--r-- | python/modules/IcePy/Init.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/modules/IcePy/Init.cpp b/python/modules/IcePy/Init.cpp index ffc2472c82d..8a20f779b4b 100644 --- a/python/modules/IcePy/Init.cpp +++ b/python/modules/IcePy/Init.cpp @@ -141,10 +141,13 @@ initIcePy(void) Ice::registerIceDiscovery(false); Ice::registerIceLocatorDiscovery(false); +#if PY_VERSION_HEX >= 0x03090000 // - // Notify Python that we are a multi-threaded extension. + // Notify Python that we are a multi-threaded extension. This method is deprecated + // and does nothing since Python 3.9 // PyEval_InitThreads(); +#endif #if PY_VERSION_HEX >= 0x03000000 // |