浏览代码

Merge pull request #5212 from GregTho/win32close

Use ::_close rather than ::close in Win32 stubs.
Adam Cozzette 7 年之前
父节点
当前提交
c27d6a5646
共有 1 个文件被更改,包括 1 次插入1 次删除
  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); }