diff --git a/src/modules/rtp_rtcp/source/rtp_utility.cc b/src/modules/rtp_rtcp/source/rtp_utility.cc index f0156375cb..2191af7e99 100644 --- a/src/modules/rtp_rtcp/source/rtp_utility.cc +++ b/src/modules/rtp_rtcp/source/rtp_utility.cc @@ -250,14 +250,14 @@ void UnixSystemClock::CurrentNTP(WebRtc_UWord32& secs, WebRtc_UWord32& frac) } #endif -#if defined(_WIN32) -static WindowsSystemClock system_clock; -#elif defined(WEBRTC_LINUX) || defined(WEBRTC_MAC) -static UnixSystemClock system_clock; -#endif - RtpRtcpClock* GetSystemClock() { + // TODO(hellner): violates the style guide (non-POD static instance). +#if defined(_WIN32) + static WindowsSystemClock system_clock; +#elif defined(WEBRTC_LINUX) || defined(WEBRTC_MAC) + static UnixSystemClock system_clock; +#endif return &system_clock; }