diff options
author | Laszlo Csomor <laszlocsomor@google.com> | 2017-03-30 14:12:44 +0200 |
---|---|---|
committer | Laszlo Csomor <laszlocsomor@google.com> | 2017-07-11 08:31:54 +0200 |
commit | e05e777d468c2486cea53764f1ac70859b5e98c4 (patch) | |
tree | 77cf85f401633bf95a42c4556dfe0e54878b9cec /cmake/extract_includes.bat.in | |
parent | 9ab7c73f7c989afa777a40ff2a7c5f0f138be22c (diff) | |
download | protobuf-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/extract_includes.bat.in')
-rw-r--r-- | cmake/extract_includes.bat.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/extract_includes.bat.in b/cmake/extract_includes.bat.in index 1278ee87..549736a6 100644 --- a/cmake/extract_includes.bat.in +++ b/cmake/extract_includes.bat.in @@ -99,6 +99,7 @@ copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\casts.h" includ copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\common.h" include\google\protobuf\stubs\common.h copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\fastmem.h" include\google\protobuf\stubs\fastmem.h copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\hash.h" include\google\protobuf\stubs\hash.h +copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\io_win32.h" include\google\protobuf\stubs\io_win32.h copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\logging.h" include\google\protobuf\stubs\logging.h copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\macros.h" include\google\protobuf\stubs\macros.h copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\stubs\mutex.h" include\google\protobuf\stubs\mutex.h |