Skip to content

Commit

Permalink
use the compiler-defined _WIN32 define
Browse files Browse the repository at this point in the history
Summary:
WIN32 is defined by windows.h. _WIN32 is defined by the compiler. The
latter is more reliable under refactoring.

Reviewed By: xavierd

Differential Revision: D47528610

fbshipit-source-id: 56318741cdf9d8e234c0b8d55aeb7f96e7d5efaa
  • Loading branch information
chadaustin authored and facebook-github-bot committed Jul 17, 2023
1 parent 7b7c087 commit ecc0611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watchman/cmds/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static UntypedResponse cmd_get_sockname(Client*, const json_ref&) {
"unix_domain", w_string_to_json(w_string::build(get_unix_sock_name())));
}

#ifdef WIN32
#ifdef _WIN32
if (!disable_named_pipe) {
resp.set(
"named_pipe",
Expand Down

0 comments on commit ecc0611

Please sign in to comment.