Index: webrtc/base/win32socketserver.cc |
diff --git a/webrtc/base/win32socketserver.cc b/webrtc/base/win32socketserver.cc |
index f466bf10cbc3e1fdd2e50929af5e1328dd01f9e2..72ce4ebb7c9aaf43f944a0042d3f5c6c18e0e9de 100644 |
--- a/webrtc/base/win32socketserver.cc |
+++ b/webrtc/base/win32socketserver.cc |
@@ -55,7 +55,7 @@ static const int ICMP_HEADER_SIZE = 8u; |
static const int ICMP_PING_TIMEOUT_MILLIS = 10000u; |
// TODO: Enable for production builds also? Use FormatMessage? |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
LPCSTR WSAErrorToString(int error, LPCSTR *description_result) { |
LPCSTR string = "Unspecified"; |
LPCSTR description = "Unspecified description"; |
@@ -626,7 +626,7 @@ void Win32Socket::OnSocketNotify(SOCKET socket, int event, int error) { |
case FD_CONNECT: |
if (error != ERROR_SUCCESS) { |
ReportWSAError("WSAAsync:connect notify", error, addr_); |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
int32_t duration = TimeSince(connect_time_); |
LOG(LS_INFO) << "WSAAsync:connect error (" << duration |
<< " ms), faking close"; |
@@ -639,7 +639,7 @@ void Win32Socket::OnSocketNotify(SOCKET socket, int event, int error) { |
// though the connect event never did occur. |
SignalCloseEvent(this, error); |
} else { |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
int32_t duration = TimeSince(connect_time_); |
LOG(LS_INFO) << "WSAAsync:connect (" << duration << " ms)"; |
#endif |