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/compiler/command_line_interface.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/compiler/command_line_interface.cc')
-rw-r--r-- | src/google/protobuf/compiler/command_line_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc index 5707d72c..5f864041 100644 --- a/src/google/protobuf/compiler/command_line_interface.cc +++ b/src/google/protobuf/compiler/command_line_interface.cc @@ -108,7 +108,7 @@ namespace compiler { #endif namespace { -#if defined(_WIN32) && !defined(__CYGWIN__) +#if defined(_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; |