View | Details | Raw Unified | Return to bug 242134
Collapse All | Expand All

(-)files/patch-src_libutil_ustring.cpp (+31 lines)
Line 0 Link Here
1
--- src/libutil/ustring.cpp.orig	2019-11-17 03:20:52 UTC
2
+++ src/libutil/ustring.cpp
3
@@ -314,22 +314,22 @@ struct libcpp_string__long {
4
     std::string::size_type __size_;
5
     std::string::size_type __cap_;
6
 };
7
-#    if _LIBCPP_BIG_ENDIAN
8
+#    if __BIG_ENDIAN__
9
 enum { libcpp_string__long_mask = 0x1ul };
10
-#    else   // _LIBCPP_BIG_ENDIAN
11
+#    else   // __BIG_ENDIAN__
12
 enum { libcpp_string__long_mask = ~(std::string::size_type(~0) >> 1) };
13
-#    endif  // _LIBCPP_BIG_ENDIAN
14
+#    endif  // __BIG_ENDIAN__
15
 #else
16
 struct libcpp_string__long {
17
     std::string::size_type __cap_;
18
     std::string::size_type __size_;
19
     std::string::pointer __data_;
20
 };
21
-#    if _LIBCPP_BIG_ENDIAN
22
+#    if __BIG_ENDIAN__
23
 enum { libcpp_string__long_mask = ~(std::string::size_type(~0) >> 1) };
24
-#    else   // _LIBCPP_BIG_ENDIAN
25
+#    else   // __BIG_ENDIAN__
26
 enum { libcpp_string__long_mask = 0x1ul };
27
-#    endif  // _LIBCPP_BIG_ENDIAN
28
+#    endif  // __BIG_ENDIAN__
29
 #endif
30
 
31
 enum {

Return to bug 242134