Remove support for Metrowerks compiler

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/79/head
Michele Calgaro 2 months ago
parent b7bc44d515
commit 14d1e0c979
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -100,7 +100,6 @@ public:
CHXBuffer(UCHAR* pData, UINT32 ulLength, HXBOOL bOwnBuffer = TRUE);
#if 0
#ifndef __MWERKS__
#if defined (_DEBUG) && defined (_WIN32) && 0
void * operator new(
unsigned int,
@ -112,7 +111,6 @@ public:
void * operator new (size_t size);
#endif /*defined (_DEBUG) && defined (_WIN32) */
void operator delete(void *p, size_t size);
#endif /*__MWERKS__*/
#endif /*0*/
inline CHXBuffer& operator=(const char* psz);

@ -429,8 +429,6 @@ int safe_int_func_call(LONG32 f);
#endif
#elif defined ( __MWERKS__ )
#define HX_SAFE_VOID2HANDLE(f) (f)
#elif defined ( _UNIX )
#define HX_SAFE_VOID2HANDLE(f) (f)
#endif // end of#if defined(_WIN32) || defined(_WINDOWS)

@ -979,56 +979,6 @@ extern "C" {
#define HXAtomicSubRetUINT32(p,n) _HXAtomicSubRetUINT32((p),(n))
/***********************************************************************
* MAC / PowerPC (CW)
*
* Implementation Notes:
*
* This will need to be rewritten, probably, once we move away from CW to PB.
*
* Note: This is an imcompletely-defined platform, be aware that
* not all standard HXAtomic operators are defined!
*
*/
#elif defined(_MACINTOSH) && defined(__MWERKS__)
inline UINT32
HXAtomicIncRetUINT32(UINT32* pNum)
{
UINT32 zeroOffset = 0;
UINT32 temp;
asm
{
again:
lwarx temp, zeroOffset, pNum
addi temp, temp, 1
stwcx. temp, zeroOffset, pNum
bne- again
}
return temp;
}
inline UINT32
HXAtomicDecRetUINT32(UINT32* pNum)
{
UINT32 zeroOffset = 0;
UINT32 temp;
asm
{
again:
lwarx temp, zeroOffset, pNum
subi temp, temp, 1
stwcx. temp, zeroOffset, pNum
bne- again
}
return temp;
}
/***********************************************************************
* MAC - PowerPC (PB or XCode) / Linux - PowerPC
*

@ -235,8 +235,7 @@ typedef unsigned int MMRESULT;
#if !defined(BEGIN_INTERFACE)
#if defined(_MPPC_) && \
( (defined(_MSC_VER) || defined(__SC__) || defined(__MWERKS__)) && \
!defined(NO_NULL_VTABLE_ENTRY) )
( (defined(_MSC_VER) || defined(__SC__)) && !defined(NO_NULL_VTABLE_ENTRY) )
#define BEGIN_INTERFACE virtual void a() {}
#define END_INTERFACE
#else

@ -208,8 +208,6 @@ new_path_string(const char* str)
*pdst = '\\';
#elif defined _UNIX || defined _OPENWAVE
*pdst = '/';
#elif defined __MWERKS__
*pdst = ':';
#else
*pdst = *psrc;
#endif

Loading…
Cancel
Save