Changeset 40426 in vbox for trunk/src/libs/xpcom18a4/xpcom/base/nscore.h
- Timestamp:
- Mar 12, 2012 1:27:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/base/nscore.h
r33535 r40426 147 147 #endif 148 148 149 /*150 * NS_DEFCALL undoes the effect of a global regparm/stdcall setting151 * 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 #else156 #define NS_DEFCALL157 #endif158 159 149 /* XXX: nike, maybe fix */ 160 150 #define NS_EXPORT_STATIC_MEMBER_(type) type … … 191 181 #define NS_EXPORT __declspec(dllexport) 192 182 #define NS_EXPORT_(type) type __declspec(dllexport) __stdcall 193 #define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL183 #define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type 194 184 #define NS_IMETHODIMP_(type) type 195 185 #define NS_METHOD_(type) type … … 204 194 # define NS_EXPORT __attribute__((visibility("default"))) 205 195 # define NS_EXPORT_(type) __attribute__((visibility("default"))) type 206 # define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL196 # define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type 207 197 # define NS_IMETHODIMP_(type) type 208 198 # define NS_METHOD_(type) type … … 214 204 # define NS_EXPORT 215 205 # define NS_EXPORT_(type) type 216 # define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL206 # define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type 217 207 # define NS_IMETHODIMP_(type) type 218 208 # define NS_METHOD_(type) type
Note:
See TracChangeset
for help on using the changeset viewer.