From e7538ae5df1ffe26f84d802b2097dc1b2111f6df Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 18 Dec 2023 12:11:45 +0100 Subject: [PATCH] Set compiler check: make sure MASTER and SLAVE defines are not set at the same time. --- src/hwapi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hwapi.cpp b/src/hwapi.cpp index e97d6ce..62fa681 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -56,11 +56,13 @@ hwapi::hwapi(QWidget *parent) : QObject(parent) myDatif = new T_datif(); // für die CAslave-Lib auskommentieren! -#else +#endif + +#ifdef THIS_IS_CA_SLAVE #ifdef THIS_IS_CA_MASTER #error "MASTER LIB COMPILED INTO MASTER" -#endif +#endif #endif