From 6f5b41d663e33da8765507df4eb34133da70f853 Mon Sep 17 00:00:00 2001
From: Thomas Juerges <thomas.juerges@skao.int>
Date: Mon, 17 Jun 2024 16:23:45 +0900
Subject: [PATCH] Fix for Tango 9.3.x compatibility: Add TANGO_LOG defines

---
 test/testdevice/src/TestDevice.h      | 10 ++++++++++
 test/testdevice/src/TestDeviceClass.h | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/test/testdevice/src/TestDevice.h b/test/testdevice/src/TestDevice.h
index 905e420..633650d 100644
--- a/test/testdevice/src/TestDevice.h
+++ b/test/testdevice/src/TestDevice.h
@@ -23,6 +23,16 @@
 #define MAX_ATTR_SIZE 3000
 #define MAX_SPECTRUM_SIZE	100
 
+#ifndef TANGO_LOG
+#define TANGO_LOG cout
+#endif
+#ifndef TANGO_LOG_INFO
+#define TANGO_LOG_INFO cout2
+#endif
+#ifndef TANGO_LOG_DEBUG
+#define TANGO_LOG_DEBUG cout4
+#endif
+
 /*----- PROTECTED REGION END -----*/
 
 
diff --git a/test/testdevice/src/TestDeviceClass.h b/test/testdevice/src/TestDeviceClass.h
index 7c9d539..5bf706d 100644
--- a/test/testdevice/src/TestDeviceClass.h
+++ b/test/testdevice/src/TestDeviceClass.h
@@ -25,6 +25,16 @@
 #include <tango/tango.h>
 #include <TestDevice.h>
 
+#ifndef TANGO_LOG
+#define TANGO_LOG cout
+#endif
+#ifndef TANGO_LOG_INFO
+#define TANGO_LOG_INFO cout2
+#endif
+#ifndef TANGO_LOG_DEBUG
+#define TANGO_LOG_DEBUG cout4
+#endif
+
 /*----- PROTECTED REGION END -----*/
 
 namespace TestDevice_ns
-- 
GitLab