summaryrefslogtreecommitdiff
path: root/comm/OLD/Service.h
diff options
context:
space:
mode:
Diffstat (limited to 'comm/OLD/Service.h')
-rw-r--r--comm/OLD/Service.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/comm/OLD/Service.h b/comm/OLD/Service.h
index b97a6cf..15ca5ad 100644
--- a/comm/OLD/Service.h
+++ b/comm/OLD/Service.h
@@ -60,17 +60,30 @@ inline UchMessage* GetMsg () { return Msg; }
class UchEvtMsgQueue : public CcuSmartData {
protected:
+#ifndef CPLUS_BUG19
CcuListOf <UchEventMsg> Queue;
+#else
+ CcuList Queue;
+#endif
public:
UchEvtMsgQueue ();
~UchEvtMsgQueue ();
inline void Put (UchEventMsg* m) { Queue.Append (m); }
+#ifndef CPLUS_BUG19
inline UchEventMsg* Peek () { return Queue.First (); }
inline UchEventMsg* Get () { return Queue.RemoveFirst (); }
+#else
+inline UchEventMsg* Peek () { return (UchEventMsg*) Queue.First (); }
+inline UchEventMsg* Get () { return (UchEventMsg*) Queue.RemoveFirst (); }
+#endif
inline void PutBack (UchEventMsg* m) { Queue.Prepend (m); }
+#ifndef CPLUS_BUG19
inline operator const CcuListOf <UchEventMsg>& () const { return Queue; }
+#else
+inline operator const CcuList& () const { return Queue; }
+#endif
};
PointerClass (pUchEvtMsgQueue, UchEvtMsgQueue)