Remove support for Metrowerks compiler

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/109/head
Michele Calgaro 1 year ago
parent 48f60c7db3
commit 5eca60a006
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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<TYPE>::operator TYPE* ()
return &((TYPE *) rep->data)[-rep->minlo];
}
#ifndef __MWERKS__ //MCW can't compile
template <class TYPE> inline
ArrayBaseT<TYPE>::operator const TYPE* ()
{
const ArrayRep * rep=(const ArrayRep *) get();
return &((const TYPE *) rep->data)[-rep->minlo];
}
#endif
template <class TYPE> inline
ArrayBaseT<TYPE>::operator const TYPE* () const
@ -903,11 +899,7 @@ public:
const GP<TYPE>& operator[](int n) const;
// -- CONVERSION
operator GP<TYPE>* ();
#ifndef __MWERKS__ //MCW can't compile
operator const GP<TYPE>* ();
#endif
operator const GP<TYPE>* () const;
// -- ALTERATION
void ins(int n, const GP<TYPE> &val, unsigned int howmany=1);
@ -952,13 +944,11 @@ inline DPArray<TYPE>::operator GP<TYPE>* ()
return (GP<TYPE> *) DArray<GPBase>::operator GPBase*();
}
#ifndef __MWERKS__ //MCW can't compile
template<class TYPE>
inline DPArray<TYPE>::operator const GP<TYPE>* ()
{
return (const GP<TYPE> *) DArray<GPBase>::operator const GPBase*();
}
#endif
template<class TYPE>
inline DPArray<TYPE>::operator const GP<TYPE>* () const

@ -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

@ -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

Loading…
Cancel
Save