summaryrefslogtreecommitdiff
path: root/utils/domoticz/patches/020-python39.patch
diff options
context:
space:
mode:
Diffstat (limited to 'utils/domoticz/patches/020-python39.patch')
-rw-r--r--utils/domoticz/patches/020-python39.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/utils/domoticz/patches/020-python39.patch b/utils/domoticz/patches/020-python39.patch
deleted file mode 100644
index 17e3b84a8..000000000
--- a/utils/domoticz/patches/020-python39.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- a/hardware/plugins/DelayedLink.h
-+++ b/hardware/plugins/DelayedLink.h
-@@ -14,6 +14,16 @@
- #include <frameobject.h>
- #include "../../main/Helper.h"
-
-+#ifndef _Py_DEC_REFTOTAL
-+ /* _Py_DEC_REFTOTAL macro has been removed from Python 3.9 by:
-+ https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924 */
-+# ifdef Py_REF_DEBUG
-+# define _Py_DEC_REFTOTAL _Py_RefTotal--
-+# else
-+# define _Py_DEC_REFTOTAL
-+# endif
-+#endif
-+
- #if PY_VERSION_HEX >= 0x030800f0
- static inline void
- py3__Py_DECREF(const char *filename, int lineno, PyObject *op)
-@@ -195,6 +205,7 @@ namespace Plugins {
- if (!shared_lib_) shared_lib_ = LoadLibrary("python34.dll");
- # endif
- #else
-+ if (!shared_lib_) FindLibrary("python3.9", true);
- if (!shared_lib_) FindLibrary("python3.8", true);
- if (!shared_lib_) FindLibrary("python3.7", true);
- if (!shared_lib_) FindLibrary("python3.6", true);