Index: src/sfnt/SkOTTable_name.h |
diff --git a/src/sfnt/SkOTTable_name.h b/src/sfnt/SkOTTable_name.h |
index ab38d729925af6335ac4e38ee2c29f37e5366fcf..6b25a2d1c8c6c5a0ee473f90c257ab6c28df9f35 100644 |
--- a/src/sfnt/SkOTTable_name.h |
+++ b/src/sfnt/SkOTTable_name.h |
@@ -576,9 +576,9 @@ struct SkOTTableName { |
#pragma pack(pop) |
-SK_COMPILE_ASSERT(sizeof(SkOTTableName) == 6, sizeof_SkOTTableName_not_6); |
-SK_COMPILE_ASSERT(sizeof(SkOTTableName::Format1Ext) == 2, sizeof_SkOTTableNameF1_not_2); |
-SK_COMPILE_ASSERT(sizeof(SkOTTableName::Format1Ext::LangTagRecord) == 4, sizeof_SkOTTableNameLangTagRecord_not_4); |
-SK_COMPILE_ASSERT(sizeof(SkOTTableName::Record) == 12, sizeof_SkOTTableNameRecord_not_12); |
+static_assert(sizeof(SkOTTableName) == 6, "sizeof_SkOTTableName_not_6"); |
+static_assert(sizeof(SkOTTableName::Format1Ext) == 2, "sizeof_SkOTTableNameF1_not_2"); |
+static_assert(sizeof(SkOTTableName::Format1Ext::LangTagRecord) == 4, "sizeof_SkOTTableNameLangTagRecord_not_4"); |
+static_assert(sizeof(SkOTTableName::Record) == 12, "sizeof_SkOTTableNameRecord_not_12"); |
#endif |