1*9356374aSAndroid Build Coastguard Worker // 2*9356374aSAndroid Build Coastguard Worker // Copyright 2022 The Abseil Authors. 3*9356374aSAndroid Build Coastguard Worker // 4*9356374aSAndroid Build Coastguard Worker // Licensed under the Apache License, Version 2.0 (the "License"); 5*9356374aSAndroid Build Coastguard Worker // you may not use this file except in compliance with the License. 6*9356374aSAndroid Build Coastguard Worker // You may obtain a copy of the License at 7*9356374aSAndroid Build Coastguard Worker // 8*9356374aSAndroid Build Coastguard Worker // https://www.apache.org/licenses/LICENSE-2.0 9*9356374aSAndroid Build Coastguard Worker // 10*9356374aSAndroid Build Coastguard Worker // Unless required by applicable law or agreed to in writing, software 11*9356374aSAndroid Build Coastguard Worker // distributed under the License is distributed on an "AS IS" BASIS, 12*9356374aSAndroid Build Coastguard Worker // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*9356374aSAndroid Build Coastguard Worker // See the License for the specific language governing permissions and 14*9356374aSAndroid Build Coastguard Worker // limitations under the License. 15*9356374aSAndroid Build Coastguard Worker 16*9356374aSAndroid Build Coastguard Worker #include "absl/log/log_entry.h" 17*9356374aSAndroid Build Coastguard Worker 18*9356374aSAndroid Build Coastguard Worker #include "absl/base/config.h" 19*9356374aSAndroid Build Coastguard Worker 20*9356374aSAndroid Build Coastguard Worker namespace absl { 21*9356374aSAndroid Build Coastguard Worker ABSL_NAMESPACE_BEGIN 22*9356374aSAndroid Build Coastguard Worker 23*9356374aSAndroid Build Coastguard Worker #ifdef ABSL_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL 24*9356374aSAndroid Build Coastguard Worker constexpr int LogEntry::kNoVerbosityLevel; 25*9356374aSAndroid Build Coastguard Worker constexpr int LogEntry::kNoVerboseLevel; 26*9356374aSAndroid Build Coastguard Worker #endif 27*9356374aSAndroid Build Coastguard Worker 28*9356374aSAndroid Build Coastguard Worker // https://github.com/abseil/abseil-cpp/issues/1465 29*9356374aSAndroid Build Coastguard Worker // CMake builds on Apple platforms error when libraries are empty. 30*9356374aSAndroid Build Coastguard Worker // Our CMake configuration can avoid this error on header-only libraries, 31*9356374aSAndroid Build Coastguard Worker // but since this library is conditionally empty, including a single 32*9356374aSAndroid Build Coastguard Worker // variable is an easy workaround. 33*9356374aSAndroid Build Coastguard Worker #ifdef __APPLE__ 34*9356374aSAndroid Build Coastguard Worker namespace log_internal { 35*9356374aSAndroid Build Coastguard Worker extern const char kAvoidEmptyLogEntryLibraryWarning; 36*9356374aSAndroid Build Coastguard Worker const char kAvoidEmptyLogEntryLibraryWarning = 0; 37*9356374aSAndroid Build Coastguard Worker } // namespace log_internal 38*9356374aSAndroid Build Coastguard Worker #endif // __APPLE__ 39*9356374aSAndroid Build Coastguard Worker 40*9356374aSAndroid Build Coastguard Worker ABSL_NAMESPACE_END 41*9356374aSAndroid Build Coastguard Worker } // namespace absl 42