Index: src/sfnt/SkSFNTHeader.h |
diff --git a/src/sfnt/SkSFNTHeader.h b/src/sfnt/SkSFNTHeader.h |
index 9071696c99c7aea8a5b2d993ea072cedc6af95a8..c2ea1e0b25767fc1fa2dcf0fdf72869b7bf32e87 100644 |
--- a/src/sfnt/SkSFNTHeader.h |
+++ b/src/sfnt/SkSFNTHeader.h |
@@ -64,7 +64,7 @@ struct SkSFNTHeader { |
#pragma pack(pop) |
-SK_COMPILE_ASSERT(sizeof(SkSFNTHeader) == 12, sizeof_SkSFNTHeader_not_12); |
-SK_COMPILE_ASSERT(sizeof(SkSFNTHeader::TableDirectoryEntry) == 16, sizeof_SkSFNTHeader_TableDirectoryEntry_not_16); |
+static_assert(sizeof(SkSFNTHeader) == 12, "sizeof_SkSFNTHeader_not_12"); |
+static_assert(sizeof(SkSFNTHeader::TableDirectoryEntry) == 16, "sizeof_SkSFNTHeader_TableDirectoryEntry_not_16"); |
#endif |