diff options
author | Brad Larson <bklarson@gmail.com> | 2017-07-12 14:45:19 -0500 |
---|---|---|
committer | Brad Larson <bklarson@gmail.com> | 2017-07-12 14:45:19 -0500 |
commit | 81142e162b7eea2c3f3483a11ce13a7fb5c20b88 (patch) | |
tree | b82c2c848868dfeb93667b48a75ba3670aad1d00 /src/google/protobuf/io | |
parent | 727c0dc1fae6c7b72f59fb29f47a52f133618461 (diff) | |
download | protobuf-81142e162b7eea2c3f3483a11ce13a7fb5c20b88.tar.gz protobuf-81142e162b7eea2c3f3483a11ce13a7fb5c20b88.tar.bz2 protobuf-81142e162b7eea2c3f3483a11ce13a7fb5c20b88.zip |
Fix build when using -Werror=undef
Correct a couple places where macros were being checked when they
might not exist in some cases.
Fixes #3356.
Diffstat (limited to 'src/google/protobuf/io')
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index 20d86143..9f1cf88c 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -1434,7 +1434,7 @@ inline bool CodedInputStream::IsFlat() const { } // namespace protobuf -#if _MSC_VER >= 1300 && !defined(__INTEL_COMPILER) +#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(__INTEL_COMPILER) #pragma runtime_checks("c", restore) #endif // _MSC_VER && !defined(__INTEL_COMPILER) |