Bug 895322 - Part 4: Only use MOZ_STATIC_ASSERT in mar.h when we're compiling C code; r=Waldo

--HG--
extra : rebase_source : 9180550b66311f339e9ea46546aa75cab3d8c92b
This commit is contained in:
Ehsan Akhgari 2013-07-18 14:36:39 -04:00
parent 7be47235e6
commit 853dd82f0f

View File

@ -21,7 +21,11 @@ extern "C" {
* code in tool/mar.c.
*/
#define MAX_SIGNATURES 8
#ifdef __cplusplus
static_assert(MAX_SIGNATURES <= 9, "too many signatures");
#else
MOZ_STATIC_ASSERT(MAX_SIGNATURES <= 9, "too many signatures");
#endif
struct ProductInformationBlock {
const char *MARChannelID;