This stuff doesn't work on OS/2 and is causing thousands of warnings errors

This commit is contained in:
mkaply%us.ibm.com 2004-07-22 20:27:48 +00:00
Родитель ce59a0e9d4
Коммит ae6ca1e908
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -45,7 +45,7 @@
JS_BEGIN_EXTERN_C
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3)
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3) && !defined(XP_OS2)
#define JS_DHASH_FASTCALL __attribute__ ((regparm (3),stdcall))
#else
#define JS_DHASH_FASTCALL

Просмотреть файл

@ -136,7 +136,7 @@
* NS_HIDDEN_(int) NS_FASTCALL func2(char *foo);
*/
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3)
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3) && !defined(XP_OS2)
#define NS_FASTCALL __attribute__ ((regparm (3), stdcall))
#else
#define NS_FASTCALL
@ -146,7 +146,7 @@
* NS_DEFCALL undoes the effect of a global regparm/stdcall setting
* so that xptcall works correctly.
*/
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3)
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3) && !defined(XP_OS2)
#define NS_DEFCALL __attribute__ ((regparm (0), cdecl))
#else
#define NS_DEFCALL

Просмотреть файл

@ -50,7 +50,7 @@ PR_BEGIN_EXTERN_C
#define PL_DHASHMETER 1
#endif
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3)
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3) && !defined(XP_OS2)
#define PL_DHASH_FASTCALL __attribute__ ((regparm (3),stdcall))
#else
#define PL_DHASH_FASTCALL