From 4fa10fe6d8d572c8ffb78f94cabedb05ebbabfe3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 11 Oct 2016 12:42:58 -0600 Subject: [PATCH] Bug 553032 - move MOZ_FORMAT_PRINTF to mfbt; r=froydnj MozReview-Commit-ID: 2aC4ZUOsGPK --HG-- extra : rebase_source : ec936e8447624653980d9168587223694a9e10c7 --- mfbt/Attributes.h | 10 ++++++++++ xpcom/base/nscore.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mfbt/Attributes.h b/mfbt/Attributes.h index f7f8a0c39291..84c967c83b38 100644 --- a/mfbt/Attributes.h +++ b/mfbt/Attributes.h @@ -569,4 +569,14 @@ #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 */ diff --git a/xpcom/base/nscore.h b/xpcom/base/nscore.h index 14c12cdddd09..f6e73c6bc70c 100644 --- a/xpcom/base/nscore.h +++ b/xpcom/base/nscore.h @@ -159,16 +159,6 @@ # define MOZ_DEPRECATED #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 *