From c1675d5a572f17ae2aeacd0f7aec7e6dbe453dc7 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 31 Dec 2024 10:37:16 +0900 Subject: Remove support for Metrowerks compiler Signed-off-by: Michele Calgaro (cherry picked from commit 5eca60a00627870ad73b24306de24dbcdf40d339) --- kviewshell/plugins/djvu/libdjvu/Arrays.h | 12 +----------- kviewshell/plugins/djvu/libdjvu/GContainer.h | 2 -- kviewshell/plugins/djvu/libdjvu/GException.h | 3 --- 3 files changed, 1 insertion(+), 16 deletions(-) (limited to 'kviewshell/plugins') diff --git a/kviewshell/plugins/djvu/libdjvu/Arrays.h b/kviewshell/plugins/djvu/libdjvu/Arrays.h index 2e16520c..ca0b1771 100644 --- a/kviewshell/plugins/djvu/libdjvu/Arrays.h +++ b/kviewshell/plugins/djvu/libdjvu/Arrays.h @@ -478,10 +478,8 @@ public: subscript range, you must stop using the pointers returned by prior invocation of this conversion operator. */ operator const TYPE* () const; - -#ifndef __MWERKS__ //MCW can't compile operator const TYPE* (); -#endif + /** Insert new elements into an array. This function inserts #howmany# elements at position #n# into the array. The initial value #val# is copied into the new elements. All array elements previously located at subscripts @@ -528,14 +526,12 @@ ArrayBaseT::operator TYPE* () return &((TYPE *) rep->data)[-rep->minlo]; } -#ifndef __MWERKS__ //MCW can't compile template inline ArrayBaseT::operator const TYPE* () { const ArrayRep * rep=(const ArrayRep *) get(); return &((const TYPE *) rep->data)[-rep->minlo]; } -#endif template inline ArrayBaseT::operator const TYPE* () const @@ -903,11 +899,7 @@ public: const GP& operator[](int n) const; // -- CONVERSION operator GP* (); - -#ifndef __MWERKS__ //MCW can't compile operator const GP* (); -#endif - operator const GP* () const; // -- ALTERATION void ins(int n, const GP &val, unsigned int howmany=1); @@ -952,13 +944,11 @@ inline DPArray::operator GP* () return (GP *) DArray::operator GPBase*(); } -#ifndef __MWERKS__ //MCW can't compile template inline DPArray::operator const GP* () { return (const GP *) DArray::operator const GPBase*(); } -#endif template inline DPArray::operator const GP* () const diff --git a/kviewshell/plugins/djvu/libdjvu/GContainer.h b/kviewshell/plugins/djvu/libdjvu/GContainer.h index 9a298b04..5b55b15d 100644 --- a/kviewshell/plugins/djvu/libdjvu/GContainer.h +++ b/kviewshell/plugins/djvu/libdjvu/GContainer.h @@ -96,8 +96,6 @@ namespace DJVU { #define GCONTAINER_NO_MEMBER_TEMPLATES 1 #elif defined(_MSC_VER) && !defined(__ICL) #define GCONTAINER_NO_MEMBER_TEMPLATES 1 -#elif defined(__MWERKS__) -#define GCONTAINER_NO_MEMBER_TEMPLATES 1 #else #define GCONTAINER_NO_MEMBER_TEMPLATES 0 #endif diff --git a/kviewshell/plugins/djvu/libdjvu/GException.h b/kviewshell/plugins/djvu/libdjvu/GException.h index 822b668e..41a8b9a8 100644 --- a/kviewshell/plugins/djvu/libdjvu/GException.h +++ b/kviewshell/plugins/djvu/libdjvu/GException.h @@ -229,9 +229,6 @@ private: #if defined(_MSC_VER) #define CPP_SUPPORTS_EXCEPTIONS #endif -#if defined(__MWERKS__) -#define CPP_SUPPORTS_EXCEPTIONS -#endif #if defined(__EXCEPTIONS) #define CPP_SUPPORTS_EXCEPTIONS #endif -- cgit v1.2.1