X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b17f6a307a32682b3349c67944a77f961b5decde..be10c7f969bb460dc79bd8946d59bf54c98ac660:/src/expat/lib/internal.h diff --git a/src/expat/lib/internal.h b/src/expat/lib/internal.h index edcc7afce1..dd5454831d 100644 --- a/src/expat/lib/internal.h +++ b/src/expat/lib/internal.h @@ -20,21 +20,20 @@ and therefore subject to change. */ -#ifdef FASTCALL -#undef FASTCALL -#endif +#if defined(__GNUC__) && defined(__i386__) && !defined(__MINGW32__) +/* We'll use this version by default only where we know it helps. + + regparm() generates warnings on Solaris boxes. See SF bug #692878. -#if defined(__GNUC__) && defined(__i386__) -/* Instability reported with egcs on a RedHat Linux 7.3. - Let's comment it out: + Instability reported with egcs on a RedHat Linux 7.3. + Let's comment out: #define FASTCALL __attribute__((stdcall, regparm(3))) and let's try this: */ #define FASTCALL __attribute__((regparm(3))) -#define PTRCALL #define PTRFASTCALL __attribute__((regparm(3))) +#endif -#elif defined(WIN32) /* Using __fastcall seems to have an unexpected negative effect under MS VC++, especially for function pointers, so we won't use it for now on that platform. It may be reconsidered for a future release @@ -42,11 +41,8 @@ Likely reason: __fastcall on Windows is like stdcall, therefore the compiler cannot perform stack optimizations for call clusters. */ -#define FASTCALL -#define PTRCALL -#define PTRFASTCALL -#endif +/* Make sure all of these are defined if they aren't already. */ #ifndef FASTCALL #define FASTCALL