Use ::_close rather than ::close in Win32 stubs.

The former is the proper converse of _open, which is used in
::google::protobuf::internal::win32::open. This resolves issue #5209.
pull/5212/head
GregTho 6 years ago committed by GitHub
parent 4265a1d36c
commit 703f11123a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/google/protobuf/stubs/io_win32.cc

@ -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); }

Loading…
Cancel
Save