VirtualBox

Ignore:
Timestamp:
Mar 12, 2012 1:27:50 PM (13 years ago)
Author:
vboxsync
Message:

libs/xpcom: gcc-4.7 fix: Remove NS_DEFCALL. regparm(0) is default on x86 and there is no sense to mark a normal function with that attribute. This attribute was removed at upstream some months ago.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/base/nscore.h

    r33535 r40426  
    147147#endif
    148148
    149 /*
    150  * NS_DEFCALL undoes the effect of a global regparm/stdcall setting
    151  * so that xptcall works correctly.
    152  */
    153 #if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3) && !defined(XP_OS2)
    154 #define NS_DEFCALL __attribute__ ((regparm (0), cdecl))
    155 #else
    156 #define NS_DEFCALL
    157 #endif
    158 
    159149/* XXX: nike, maybe fix */
    160150#define NS_EXPORT_STATIC_MEMBER_(type) type
     
    191181#define NS_EXPORT __declspec(dllexport)
    192182#define NS_EXPORT_(type) type __declspec(dllexport) __stdcall
    193 #define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL
     183#define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type
    194184#define NS_IMETHODIMP_(type) type
    195185#define NS_METHOD_(type) type
     
    204194#  define NS_EXPORT __attribute__((visibility("default")))
    205195#  define NS_EXPORT_(type) __attribute__((visibility("default"))) type
    206 #  define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL
     196#  define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type
    207197#  define NS_IMETHODIMP_(type) type
    208198#  define NS_METHOD_(type) type
     
    214204#  define NS_EXPORT
    215205#  define NS_EXPORT_(type) type
    216 #  define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL
     206#  define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type
    217207#  define NS_IMETHODIMP_(type) type
    218208#  define NS_METHOD_(type) type
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette