The former is the proper converse of _open, which is used in ::google::protobuf::internal::win32::open. This resolves issue #5209.
@@ -334,7 +334,7 @@ FILE* fopen(const char* path, const char* mode) {
#endif
}
-int close(int fd) { return ::close(fd); }
+int close(int fd) { return ::_close(fd); }
int dup(int fd) { return ::_dup(fd); }