Debian Codegraph @

monero/contrib/depends/patches/protobuf/visibility.patch

raw
1 --- src/google/protobuf/descriptor.cc.O 2018-07-30 22:16:10.000000000 +0000
2 +++ src/google/protobuf/descriptor.cc 2022-05-06 13:38:14.827309092 +0000
3 @@ -32,6 +32,9 @@
4 // Based on original Protocol Buffers design by
5 // Sanjay Ghemawat, Jeff Dean, and others.
6
7 +#if defined(__APPLE__) && defined(__arm64__)
8 +#pragma GCC visibility push(hidden)
9 +#endif
10 #include <algorithm>
11 #include <functional>
12 #include <google/protobuf/stubs/hash.h>
13 @@ -7274,3 +7277,6 @@
14
15 } // namespace protobuf
16 } // namespace google
17 +#if defined(__APPLE__) && defined(__arm64__)
18 +#pragma GCC visibility pop
19 +#endif
20 --- src/google/protobuf/extension_set.cc.O 2018-07-23 20:56:42.000000000 +0000
21 +++ src/google/protobuf/extension_set.cc 2022-05-06 14:48:55.369877050 +0000
22 @@ -32,6 +32,9 @@
23 // Based on original Protocol Buffers design by
24 // Sanjay Ghemawat, Jeff Dean, and others.
25
26 +#if defined(__APPLE__) && defined(__arm64__)
27 +#pragma GCC visibility push(hidden)
28 +#endif
29 #include <google/protobuf/stubs/hash.h>
30 #include <tuple>
31 #include <utility>
32 @@ -1914,3 +1917,6 @@
33 } // namespace internal
34 } // namespace protobuf
35 } // namespace google
36 +#if defined(__APPLE__) && defined(__arm64__)
37 +#pragma GCC visibility pop
38 +#endif
39 --- src/google/protobuf/extension_set_heavy.cc.O 2018-07-30 22:16:10.000000000 +0000
40 +++ src/google/protobuf/extension_set_heavy.cc 2022-05-06 14:14:27.847320946 +0000
41 @@ -35,6 +35,10 @@
42 // Contains methods defined in extension_set.h which cannot be part of the
43 // lite library because they use descriptors or reflection.
44
45 +#if defined(__APPLE__) && defined(__arm64__)
46 +#pragma GCC visibility push(hidden)
47 +#endif
48 +
49 #include <google/protobuf/stubs/casts.h>
50 #include <google/protobuf/descriptor.pb.h>
51 #include <google/protobuf/io/coded_stream.h>
52 @@ -814,3 +818,6 @@
53 } // namespace internal
54 } // namespace protobuf
55 } // namespace google
56 +#if defined(__APPLE__) && defined(__arm64__)
57 +#pragma GCC visibility pop
58 +#endif
59 --- src/google/protobuf/generated_message_reflection.cc.O 2018-07-23 20:56:42.000000000 +0000
60 +++ src/google/protobuf/generated_message_reflection.cc 2022-05-06 13:38:49.655540772 +0000
61 @@ -32,6 +32,9 @@
62 // Based on original Protocol Buffers design by
63 // Sanjay Ghemawat, Jeff Dean, and others.
64
65 +#if defined(__APPLE__) && defined(__arm64__)
66 +#pragma GCC visibility push(hidden)
67 +#endif
68 #include <algorithm>
69 #include <set>
70
71 @@ -2420,3 +2423,6 @@
72 } // namespace internal
73 } // namespace protobuf
74 } // namespace google
75 +#if defined(__APPLE__) && defined(__arm64__)
76 +#pragma GCC visibility pop
77 +#endif
78 --- src/google/protobuf/map_field.cc.O 2018-07-23 20:56:42.000000000 +0000
79 +++ src/google/protobuf/map_field.cc 2022-05-06 13:34:44.913905697 +0000
80 @@ -28,6 +28,10 @@
81 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
82 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
83
84 +#if defined(__APPLE__) && defined(__arm64__)
85 +#pragma GCC visibility push(hidden)
86 +#endif
87 +
88 #include <google/protobuf/map_field.h>
89 #include <google/protobuf/map_field_inl.h>
90
91 @@ -462,3 +466,6 @@
92 } // namespace internal
93 } // namespace protobuf
94 } // namespace google
95 +#if defined(__APPLE__) && defined(__arm64__)
96 +#pragma GCC visibility pop
97 +#endif
98 --- src/google/protobuf/text_format.cc.O 2018-07-30 22:16:11.000000000 +0000
99 +++ src/google/protobuf/text_format.cc 2022-05-06 13:34:58.881999517 +0000
100 @@ -32,6 +32,10 @@
101 // Based on original Protocol Buffers design by
102 // Sanjay Ghemawat, Jeff Dean, and others.
103
104 +#if defined(__APPLE__) && defined(__arm64__)
105 +#pragma GCC visibility push(hidden)
106 +#endif
107 +
108 #include <algorithm>
109 #include <float.h>
110 #include <math.h>
111 @@ -2258,3 +2262,6 @@
112
113 } // namespace protobuf
114 } // namespace google
115 +#if defined(__APPLE__) && defined(__arm64__)
116 +#pragma GCC visibility pop
117 +#endif
118 --- src/google/protobuf/wire_format.cc.O 2018-07-23 20:56:42.000000000 +0000
119 +++ src/google/protobuf/wire_format.cc 2022-05-06 13:06:23.294219228 +0000
120 @@ -32,6 +32,10 @@
121 // Based on original Protocol Buffers design by
122 // Sanjay Ghemawat, Jeff Dean, and others.
123
124 +#if defined(__APPLE__) && defined(__arm64__)
125 +#pragma GCC visibility push(hidden)
126 +#endif
127 +
128 #include <stack>
129 #include <string>
130 #include <vector>
131 @@ -1445,3 +1449,7 @@
132 } // namespace internal
133 } // namespace protobuf
134 } // namespace google
135 +
136 +#if defined(__APPLE__) && defined(__arm64__)
137 +#pragma GCC visibility pop
138 +#endif
139 --- src/google/protobuf/stubs/status.cc.O 2018-07-23 20:56:42.000000000 +0000
140 +++ src/google/protobuf/stubs/status.cc 2022-05-06 15:18:53.393208814 +0000
141 @@ -27,6 +27,11 @@
142 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145 +
146 +#if defined(__APPLE__) && defined(__arm64__)
147 +#pragma GCC visibility push(hidden)
148 +#endif
149 +
150 #include <google/protobuf/stubs/status.h>
151
152 #include <ostream>
153 @@ -132,3 +137,6 @@
154 } // namespace util
155 } // namespace protobuf
156 } // namespace google
157 +#if defined(__APPLE__) && defined(__arm64__)
158 +#pragma GCC visibility pop
159 +#endif