aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
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 /src/Makefile.am
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 'src/Makefile.am')
-rw-r--r--src/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 45a8a79b..8d48f293 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -198,6 +198,8 @@ libprotobuf_lite_la_SOURCES = \
google/protobuf/stubs/hash.h \
google/protobuf/stubs/int128.cc \
google/protobuf/stubs/int128.h \
+ google/protobuf/stubs/io_win32.cc \
+ google/protobuf/stubs/io_win32.h \
google/protobuf/stubs/map_util.h \
google/protobuf/stubs/mathutil.h \
google/protobuf/stubs/once.cc \
@@ -761,6 +763,7 @@ protobuf_test_SOURCES = \
google/protobuf/stubs/bytestream_unittest.cc \
google/protobuf/stubs/common_unittest.cc \
google/protobuf/stubs/int128_unittest.cc \
+ google/protobuf/stubs/io_win32_unittest.cc \
google/protobuf/stubs/once_unittest.cc \
google/protobuf/stubs/statusor_test.cc \
google/protobuf/stubs/status_test.cc \