From f8fb87ef28da3e35e7bef998161fbda62b511d6d Mon Sep 17 00:00:00 2001 From: chatty Date: Mon, 26 Jul 1993 16:05:03 +0000 Subject: Handle CPLUS_BUG19 --- comm/OLD/Service.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'comm/OLD/Service.h') 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 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 & () const { return Queue; } +#else +inline operator const CcuList& () const { return Queue; } +#endif }; PointerClass (pUchEvtMsgQueue, UchEvtMsgQueue) -- cgit v1.1