aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf/3.2.0/src/google/protobuf/stubs/io_win32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/protobuf/3.2.0/src/google/protobuf/stubs/io_win32.cc')
-rw-r--r--third_party/protobuf/3.2.0/src/google/protobuf/stubs/io_win32.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/third_party/protobuf/3.2.0/src/google/protobuf/stubs/io_win32.cc b/third_party/protobuf/3.2.0/src/google/protobuf/stubs/io_win32.cc
index b5f1cdf0b7..bffa450a26 100644
--- a/third_party/protobuf/3.2.0/src/google/protobuf/stubs/io_win32.cc
+++ b/third_party/protobuf/3.2.0/src/google/protobuf/stubs/io_win32.cc
@@ -251,14 +251,6 @@ int win32_mkdir(const char* path, int _mode) {
}
int win32_access(const char* path, int mode) {
- // _access/_waccess in <io.h> don't support checking for executability (nor is
- // X_OK defined).
- // They support checking for readability (but R_OK is not defined) but we
- // never use them for that in the protobuf source code.
- // Existence and writability check are also supported, but again F_OK and W_OK
- // aren't defined as constants in <io.h>; they are defined in io_win32.h
- // Therefore we only support F_OK and W_OK.
- assert(mode & ~(F_OK | W_OK) == 0);
wstring wpath;
if (!as_windows_path(path, MAX_PATH, &wpath)) {
errno = ENOENT;