Index: base/win/i18n.cc |
diff --git a/base/win/i18n.cc b/base/win/i18n.cc |
index 9e523a15cb2acb7b45b378d0c9739232dc6b7c12..a26e274071eb9bb6be9e17988f3f3e7086ad8085 100644 |
--- a/base/win/i18n.cc |
+++ b/base/win/i18n.cc |
@@ -32,8 +32,9 @@ const char *const kLanguageFunctionNames[] = { |
&kThreadLanguagesFunctionName[0] |
}; |
-COMPILE_ASSERT(NUM_FUNCTIONS == arraysize(kLanguageFunctionNames), |
- language_function_enum_and_names_out_of_sync); |
+static_assert(NUM_FUNCTIONS == arraysize(kLanguageFunctionNames), |
+ "LanguageFunction enum and kLanguageFunctionNames array must be " |
+ "kept in sync"); |
// Calls one of the MUI Get*PreferredUILanguages functions, placing the result |
// in |languages|. |function| identifies the function to call and |flags| is |