Index: src/pdf/SkPDFResourceDict.cpp |
diff --git a/src/pdf/SkPDFResourceDict.cpp b/src/pdf/SkPDFResourceDict.cpp |
index 1f5bceac9c6e804b7aa15a4518931e68040e4bd4..dbe733e765a54d7132549f63c9cd05339f88c4f1 100644 |
--- a/src/pdf/SkPDFResourceDict.cpp |
+++ b/src/pdf/SkPDFResourceDict.cpp |
@@ -12,14 +12,10 @@ |
// expected values as defined in the arrays below. |
// If these are failing, you may need to update the resource_type_prefixes |
// and resource_type_names arrays below. |
-SK_COMPILE_ASSERT(SkPDFResourceDict::kExtGState_ResourceType == 0, |
- resource_type_mismatch); |
-SK_COMPILE_ASSERT(SkPDFResourceDict::kPattern_ResourceType == 1, |
- resource_type_mismatch); |
-SK_COMPILE_ASSERT(SkPDFResourceDict::kXObject_ResourceType == 2, |
- resource_type_mismatch); |
-SK_COMPILE_ASSERT(SkPDFResourceDict::kFont_ResourceType == 3, |
- resource_type_mismatch); |
+static_assert(SkPDFResourceDict::kExtGState_ResourceType == 0, "resource_type_mismatch"); |
+static_assert(SkPDFResourceDict::kPattern_ResourceType == 1, "resource_type_mismatch"); |
+static_assert(SkPDFResourceDict::kXObject_ResourceType == 2, "resource_type_mismatch"); |
+static_assert(SkPDFResourceDict::kFont_ResourceType == 3, "resource_type_mismatch"); |
static const char resource_type_prefixes[] = { |
'G', |