Browse Source

Merge pull request #5212 from GregTho/win32close

Use ::_close rather than ::close in Win32 stubs.
Adam Cozzette 7 years ago
parent
commit
c27d6a5646
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/google/protobuf/stubs/io_win32.cc

+ 1 - 1
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); }