@@ -420,14 +420,12 @@ static bool SendEmailInternal(const char*dest, const char *subject,
420420base::Logger::~Logger () {
421421}
422422
423- #ifdef GLOG_CUSTOM_PREFIX_SUPPORT
424423namespace {
425424 // Optional user-configured callback to print custom prefixes.
426425 CustomPrefixCallback custom_prefix_callback = NULL ;
427426 // User-provided data to pass to the callback:
428427 void * custom_prefix_callback_data = NULL ;
429428}
430- #endif
431429
432430namespace {
433431
@@ -1687,9 +1685,7 @@ void LogMessage::Init(const char* file,
16871685 std::ios saved_fmt (NULL );
16881686 saved_fmt.copyfmt (stream ());
16891687 stream ().fill (' 0' );
1690- #ifdef GLOG_CUSTOM_PREFIX_SUPPORT
16911688 if (custom_prefix_callback == NULL ) {
1692- #endif
16931689 stream () << LogSeverityNames[severity][0 ];
16941690 if (FLAGS_log_year_in_prefix) {
16951691 stream () << setw (4 ) << 1900 + logmsgtime_.year ();
@@ -1706,7 +1702,6 @@ void LogMessage::Init(const char* file,
17061702 << static_cast <unsigned int >(GetTID ()) << setfill (' 0' )
17071703 << ' '
17081704 << data_->basename_ << ' :' << data_->line_ << " ] " ;
1709- #ifdef GLOG_CUSTOM_PREFIX_SUPPORT
17101705 } else {
17111706 custom_prefix_callback (
17121707 stream (),
@@ -1717,7 +1712,6 @@ void LogMessage::Init(const char* file,
17171712 );
17181713 stream () << " " ;
17191714 }
1720- #endif
17211715 stream ().copyfmt (saved_fmt);
17221716 }
17231717 data_->num_prefix_chars_ = data_->stream_ .pcount ();
@@ -2649,15 +2643,13 @@ void InitGoogleLogging(const char* argv0) {
26492643 glog_internal_namespace_::InitGoogleLoggingUtilities (argv0);
26502644}
26512645
2652- #ifdef GLOG_CUSTOM_PREFIX_SUPPORT
26532646void InitGoogleLogging (const char * argv0,
26542647 CustomPrefixCallback prefix_callback,
26552648 void * prefix_callback_data) {
26562649 custom_prefix_callback = prefix_callback;
26572650 custom_prefix_callback_data = prefix_callback_data;
26582651 InitGoogleLogging (argv0);
26592652}
2660- #endif
26612653
26622654void ShutdownGoogleLogging () {
26632655 glog_internal_namespace_::ShutdownGoogleLoggingUtilities ();
0 commit comments