aboutsummaryrefslogtreecommitdiff
path: root/cmake/libprotoc.cmake
diff options
context:
space:
mode:
authorLaszlo Csomor <laszlocsomor@google.com>2017-03-30 14:12:44 +0200
committerLaszlo Csomor <laszlocsomor@google.com>2017-07-11 08:31:54 +0200
commite05e777d468c2486cea53764f1ac70859b5e98c4 (patch)
tree77cf85f401633bf95a42c4556dfe0e54878b9cec /cmake/libprotoc.cmake
parent9ab7c73f7c989afa777a40ff2a7c5f0f138be22c (diff)
downloadprotobuf-e05e777d468c2486cea53764f1ac70859b5e98c4.tar.gz
protobuf-e05e777d468c2486cea53764f1ac70859b5e98c4.tar.bz2
protobuf-e05e777d468c2486cea53764f1ac70859b5e98c4.zip
Windows: support long paths
Add implementations of open(2), mkdir(2), stat(2), etc. that support long paths under Windows (paths longer than MAX_PATH in <windows.h>, which is 260 characters). The implementations are in a separate namespace (google::protobuf::internal::win32), so they won't collide with the standard implementations in <io.h>, but after importing them with `using` they can be drop-in replacements. Fixes https://github.com/bazelbuild/bazel/issues/2634 Fixes https://github.com/google/protobuf/issues/2891
Diffstat (limited to 'cmake/libprotoc.cmake')
-rw-r--r--cmake/libprotoc.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/libprotoc.cmake b/cmake/libprotoc.cmake
index 51226540..8ac8d479 100644
--- a/cmake/libprotoc.cmake
+++ b/cmake/libprotoc.cmake
@@ -93,6 +93,7 @@ set(libprotoc_files
${protobuf_source_dir}/src/google/protobuf/compiler/ruby/ruby_generator.cc
${protobuf_source_dir}/src/google/protobuf/compiler/subprocess.cc
${protobuf_source_dir}/src/google/protobuf/compiler/zip_writer.cc
+ ${protobuf_source_dir}/src/google/protobuf/stubs/io_win32.cc
)
set(libprotoc_headers