Commit a956723
committed
Use CMake to check for strlcat/strlcpy
Rather than try to hard-code whether or not each version of each
platform has strlcat and strlcpy, this patch has CMake check to see if
it's available after including string.h. If they are, then we should not
redefine them. This comes after trying to build Foundation against
glibc 2.38, which finally added these two functions, causing
CoreFoundation to fail to compile.1 parent 1b514e4 commit a956723
File tree
2 files changed
+15
-3
lines changed- CoreFoundation
- Base.subproj
2 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
204 | 205 | | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
218 | | - | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
72 | 83 | | |
73 | | - | |
74 | 84 | | |
75 | 85 | | |
76 | 86 | | |
| |||
0 commit comments