diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2017-08-11 12:08:00 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2017-08-11 12:08:00 -0700 |
commit | 564f02c91ec0e983806762de4b842a762e21bb47 (patch) | |
tree | 52a4a64303c8426f487f08624e5059b977b078cc /src/google/protobuf/io/zero_copy_stream_unittest.cc | |
parent | 7afa796bb914c911cc3d40aeeba1ce63b2f83f99 (diff) | |
download | protobuf-564f02c91ec0e983806762de4b842a762e21bb47.tar.gz protobuf-564f02c91ec0e983806762de4b842a762e21bb47.tar.bz2 protobuf-564f02c91ec0e983806762de4b842a762e21bb47.zip |
Make win32_io only for MSVC
This excludes cygwin and mingw from using the self implemented
functions.
Diffstat (limited to 'src/google/protobuf/io/zero_copy_stream_unittest.cc')
-rw-r--r-- | src/google/protobuf/io/zero_copy_stream_unittest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/google/protobuf/io/zero_copy_stream_unittest.cc b/src/google/protobuf/io/zero_copy_stream_unittest.cc index f3754087..2bca6a90 100644 --- a/src/google/protobuf/io/zero_copy_stream_unittest.cc +++ b/src/google/protobuf/io/zero_copy_stream_unittest.cc @@ -83,6 +83,9 @@ namespace { #ifdef _WIN32 #define pipe(fds) _pipe(fds, 4096, O_BINARY) +#endif + +#ifdef _MSC_VER // DO NOT include <io.h>, instead create functions in io_win32.{h,cc} and import // them like we do below. using google::protobuf::internal::win32::access; |