Skip to content

Commit 07a7928

Browse files
authored
Fix _WIN32 Wundef warning; NFC (llvm#159301)
The `_WIN32` macro is tested for defined-ness everywhere else. The instance here triggers a warning when compiling with `-Wundef`.
1 parent 5f34d53 commit 07a7928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/raw_socket_stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ manageTimeout(const std::chrono::milliseconds &Timeout,
255255
// has been canceled by another thread
256256
if (getActiveFD() == -1 || (CancelFD.has_value() && FD[1].revents & POLLIN))
257257
return std::make_error_code(std::errc::operation_canceled);
258-
#if _WIN32
258+
#ifdef _WIN32
259259
if (PollStatus == SOCKET_ERROR)
260260
#else
261261
if (PollStatus == -1)

0 commit comments

Comments
 (0)