Skip to content

Commit

Permalink
Define _WINSOCKAPI_ to address compilation error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed Jun 8, 2024
1 parent a46b49b commit 8b9b5ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
@Platform(
value = {"linux", "macosx", "windows"},
compiler = "cpp17",
define = {"SHARED_PTR_NAMESPACE std", "UNIQUE_PTR_NAMESPACE std", "USE_C10D_GLOO"},
define = {"SHARED_PTR_NAMESPACE std", "UNIQUE_PTR_NAMESPACE std", "USE_C10D_GLOO", "_WINSOCKAPI_"},
include = {
"torch/csrc/distributed/c10d/ProcessGroupGloo.hpp",
"torch/csrc/distributed/c10d/PrefixStore.hpp",
Expand Down

0 comments on commit 8b9b5ed

Please sign in to comment.