diff options
author | 2015-08-20 07:57:51 -0700 | |
---|---|---|
committer | 2015-08-20 07:57:52 -0700 | |
commit | 99fe82260633fcf5d92cca38d12ef0937ecca61c (patch) | |
tree | 258dedccd2b908de58f6b1ae7c67dbfbe7208866 /src/sfnt/SkOTTable_head.h | |
parent | 915881fe743f9a789037695f543bc6ea189cd0cb (diff) |
Use static_assert instead of SK_COMPILE_ASSERT.
Now that static_assert is allowed, there is no need to use a non-
standard compile time assertion
Review URL: https://codereview.chromium.org/1306443004
Diffstat (limited to 'src/sfnt/SkOTTable_head.h')
-rw-r--r-- | src/sfnt/SkOTTable_head.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sfnt/SkOTTable_head.h b/src/sfnt/SkOTTable_head.h index 3d2c0f1113..52970b0f3b 100644 --- a/src/sfnt/SkOTTable_head.h +++ b/src/sfnt/SkOTTable_head.h @@ -144,7 +144,7 @@ struct SkOTTableHead { #include <stddef.h> -SK_COMPILE_ASSERT(offsetof(SkOTTableHead, glyphDataFormat) == 52, SkOTTableHead_glyphDataFormat_not_at_52); -SK_COMPILE_ASSERT(sizeof(SkOTTableHead) == 54, sizeof_SkOTTableHead_not_54); +static_assert(offsetof(SkOTTableHead, glyphDataFormat) == 52, "SkOTTableHead_glyphDataFormat_not_at_52"); +static_assert(sizeof(SkOTTableHead) == 54, "sizeof_SkOTTableHead_not_54"); #endif |