Index: third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc |
diff --git a/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc b/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc |
index 7a8cbfb8b287a1698e214a72a4b8d2f5d0b4e9d1..49c10aced62059e38dd8f05af747f65176a92786 100644 |
--- a/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc |
+++ b/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc |
@@ -41,7 +41,10 @@ |
#include <gtest/gtest.h> |
typedef int int32; |
+// IBM AIX typedefs `int64` in `sys/inttypes.h`, included transitively above. |
+#ifndef _AIX |
typedef long int64; |
+#endif |
using std::string; |
using std::vector; |
@@ -607,7 +610,7 @@ TEST(TypeTraitsTest, TestIsSame) { |
} |
TEST(TypeTraitsTest, TestConvertible) { |
-#if !defined(_MSC_VER) && !(defined(__GNUC__) && __GNUC__ <= 3) |
+#if !(defined(__GNUC__) && __GNUC__ <= 3) |
EXPECT_TRUE((is_convertible<int, int>::value)); |
EXPECT_TRUE((is_convertible<int, long>::value)); |
EXPECT_TRUE((is_convertible<long, int>::value)); |