Bug 553032 - move MOZ_FORMAT_PRINTF to mfbt; r=froydnj

MozReview-Commit-ID: 2aC4ZUOsGPK

--HG--
extra : rebase_source : ec936e8447624653980d9168587223694a9e10c7
This commit is contained in:
Tom Tromey 2016-10-11 12:42:58 -06:00
parent 9d38bea730
commit 4fa10fe6d8
2 changed files with 10 additions and 10 deletions

View File

@ -569,4 +569,14 @@
#endif /* __cplusplus */ #endif /* __cplusplus */
/**
* Printf style formats
*/
#ifdef __GNUC__
#define MOZ_FORMAT_PRINTF(stringIndex, firstToCheck) \
__attribute__ ((format (printf, stringIndex, firstToCheck)))
#else
#define MOZ_FORMAT_PRINTF(stringIndex, firstToCheck)
#endif
#endif /* mozilla_Attributes_h */ #endif /* mozilla_Attributes_h */

View File

@ -159,16 +159,6 @@
# define MOZ_DEPRECATED # define MOZ_DEPRECATED
#endif #endif
/**
* Printf style formats
*/
#ifdef __GNUC__
#define MOZ_FORMAT_PRINTF(stringIndex, firstToCheck) \
__attribute__ ((format (printf, stringIndex, firstToCheck)))
#else
#define MOZ_FORMAT_PRINTF(stringIndex, firstToCheck)
#endif
/** /**
* Generic API modifiers which return the standard XPCOM nsresult type * Generic API modifiers which return the standard XPCOM nsresult type
* *