diff --git a/src/logging_unittest.cc b/src/logging_unittest.cc
index b8a9a87287222747f99b6a17473fc64a2e8d3282..aec8ef4994d11c50541a5a53eaa66947eaba8bc0 100644
--- a/src/logging_unittest.cc
+++ b/src/logging_unittest.cc
@@ -273,7 +273,7 @@ void TestLogging(bool check_counts) {
              << setw(1) << hex << j;
 
   {
-    google::LogMessage outer(__FILE__, __LINE__, google::ERROR);
+    google::LogMessage outer(__FILE__, __LINE__, GLOG_ERROR);
     outer.stream() << "outer";
 
     LOG(ERROR) << "inner";