mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Only use __attribute__ on gcc 3 or higher. Fixing bustage.
This commit is contained in:
parent
dfe82b25ea
commit
13588951d2
@ -136,7 +136,7 @@
|
||||
* NS_HIDDEN_(int) NS_FASTCALL func2(char *foo);
|
||||
*/
|
||||
|
||||
#if defined(__i386__) && defined(__GNUC__)
|
||||
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3)
|
||||
#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__)
|
||||
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3)
|
||||
#define NS_DEFCALL __attribute__ ((regparm (0), cdecl))
|
||||
#else
|
||||
#define NS_DEFCALL
|
||||
|
Loading…
Reference in New Issue
Block a user