diff --git a/implementations/Crafter.Build-Clang.cpp b/implementations/Crafter.Build-Clang.cpp index db81f13..dd8c674 100644 --- a/implementations/Crafter.Build-Clang.cpp +++ b/implementations/Crafter.Build-Clang.cpp @@ -21,6 +21,9 @@ module; #if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32) #include #include +// (pulled in transitively) defines `interface` as a macro for `struct`, +// which collides with local variables named `interface` in this TU. +#undef interface #else #include #include @@ -1471,7 +1474,7 @@ int Crafter::Run(int argc, char** argv) { sockaddr_in addr{}; addr.sin_family = AF_INET; addr.sin_addr.s_addr = htonl(INADDR_ANY); - addr.sin_port = htons(static_cast(p)); + addr.sin_port = htons(static_cast(p)); bool ok = ::bind(s, reinterpret_cast(&addr), sizeof(addr)) == 0; closesock(s); if (ok) return p;