aboutsummaryrefslogtreecommitdiff
path: root/utils/domoticz/patches/994-compile_err_whitout_py.patch
blob: d8bbfa6e311352c60dd08800145264fd714ee392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From fff4bef553cfd75030d473b3296ade88b3150909 Mon Sep 17 00:00:00 2001
From: Rob Peters <Info@Domoticz.com>
Date: Thu, 10 Mar 2022 07:09:18 +0100
Subject: [PATCH] Fixed compile error when PYTHON was disabled (Fixes #5187)

---
 hardware/plugins/DelayedLink.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/hardware/plugins/DelayedLink.h
+++ b/hardware/plugins/DelayedLink.h
@@ -1,5 +1,5 @@
 #pragma once
-
+#ifdef ENABLE_PYTHON
 #ifdef WIN32
 #	define MS_NO_COREDLL 1
 #else
@@ -574,3 +574,4 @@ static inline void py3__Py_XDECREF(PyObj
 #endif
 #pragma pop_macro("_DEBUG")
 } // namespace Plugins
+#endif //#ifdef ENABLE_PYTHON