浏览代码

It helps if you write macros correctly

Peter Kasting 10 年之前
父节点
当前提交
f5a332553e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/google/protobuf/stubs/hash.h

+ 2 - 2
src/google/protobuf/stubs/hash.h

@@ -42,8 +42,8 @@
 #define GOOGLE_PROTOBUF_HAVE_HASH_SET 1
 #define GOOGLE_PROTOBUF_HAVE_HASH_SET 1
 
 
 // Use C++11 unordered_{map|set} if available.
 // Use C++11 unordered_{map|set} if available.
-#if ((_LIBCPP_STD_VER >= 11) ||
-     (((__cplusplus >= 201103L) || defined(__GXX_EXPERIMENTAL_CXX0X)) &&
+#if ((_LIBCPP_STD_VER >= 11) || \
+     (((__cplusplus >= 201103L) || defined(__GXX_EXPERIMENTAL_CXX0X)) && \
       (__GLIBCXX__ > 20090421)))
       (__GLIBCXX__ > 20090421)))
 # define GOOGLE_PROTOBUF_HAS_CXX11_HASH
 # define GOOGLE_PROTOBUF_HAS_CXX11_HASH