compile fixes for old dvb api (7020....)
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 26 Feb 2007 20:01:06 +0000 (20:01 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 26 Feb 2007 20:01:06 +0000 (20:01 +0000)
lib/base/object.h
lib/dvb/idvb.h

index ea08a77..8cea2cd 100644 (file)
@@ -106,7 +106,7 @@ public:
                                if (!ref) \
                                        delete this; \
                        }
-       #elif defined(__ppc__)
+       #elif defined(__ppc__) || defined(__powerpc__)
                #define DECLARE_REF(x)                  \
                        private: oRefCount ref;         \
                        public: void AddRef();          \
index 36b2bea..a951fdc 100644 (file)
@@ -621,6 +621,10 @@ public:
        virtual RESULT flush()=0;
 };
 
+#if HAVE_DVB_API_VERSION < 3 && !defined(VIDEO_EVENT_SIZE_CHANGED)
+#define VIDEO_EVENT_SIZE_CHANGED 1
+#endif
+
 class iTSMPEGDecoder: public iObject
 {
 public: