diff --git a/xpcom/base/nscore.h b/xpcom/base/nscore.h index c9208423f0f..9a0b6bd592f 100644 --- a/xpcom/base/nscore.h +++ b/xpcom/base/nscore.h @@ -132,10 +132,12 @@ #define NS_IMETHODIMP_(type) type __stdcall #define NS_METHOD_(type) type __stdcall #define NS_CALLBACK_(_type, _name) _type (__stdcall * _name) -#define NS_STDCALL __stdcall #ifndef _WIN64 // Win64 has only one calling convention. __stdcall will be ignored by the compiler. +#define NS_STDCALL __stdcall #define NS_HAVE_STDCALL +#else +#define NS_STDCALL #endif #define NS_FROZENCALL __cdecl