mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1351488 - Add MOZ_XPCOM_ABI to mfbt (r=froydnj)
MozReview-Commit-ID: Hw3zDX3TOhs --HG-- extra : rebase_source : 96d93215f9d79e376df25108d0f4d82a178bda28
This commit is contained in:
parent
1eaf787beb
commit
e59ff0294c
@ -704,4 +704,17 @@
|
||||
#define MOZ_FORMAT_PRINTF(stringIndex, firstToCheck)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* To manually declare an XPCOM ABI-compatible virtual function, the following
|
||||
* macros can be used to handle the non-standard ABI used on Windows for COM
|
||||
* compatibility. E.g.:
|
||||
*
|
||||
* virtual ReturnType MOZ_XPCOM_ABI foo();
|
||||
*/
|
||||
#if defined(XP_WIN)
|
||||
# define MOZ_XPCOM_ABI __stdcall
|
||||
#else
|
||||
# define MOZ_XPCOM_ABI
|
||||
#endif
|
||||
|
||||
#endif /* mozilla_Attributes_h */
|
||||
|
Loading…
Reference in New Issue
Block a user