Commit 3fae5f1
authored
osx: fix inconsistent use of the macro TARGET_OS_OSX (#2222)
* osx: fix inconsistent use of the macro `TARGET_OS_OSX`
Fixed the build error on iOS:
```
httplib.h:3583:3: error: unknown type name 'CFStringRef'
870 | CFStringRef hostname_ref = CFStringCreateWithCString(
```
Note, `TARGET_OS_OSX` is defined but is 0 when `TARGET_OS_IOS` is 1,
and vise versa. Hence, `TARGET_OS_MAC` should have been used, that is
set to 1 for the both targets.
* improve: non-blocking getaddrinfo() for all mac target variants
`TARGET_OS_MAC` should have been used, that is set to 1 for all other
targets: OSX, IPHONE (IOS, TV, WATCH, VISION, BRIDGE), SIMULATOR,
DRIVERKIT.1 parent fe7fe15 commit 3fae5f1
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
3578 | 3578 | | |
3579 | 3579 | | |
3580 | 3580 | | |
3581 | | - | |
| 3581 | + | |
3582 | 3582 | | |
3583 | 3583 | | |
3584 | 3584 | | |
| |||
6258 | 6258 | | |
6259 | 6259 | | |
6260 | 6260 | | |
6261 | | - | |
6262 | | - | |
| 6261 | + | |
6263 | 6262 | | |
6264 | 6263 | | |
6265 | 6264 | | |
| |||
11008 | 11007 | | |
11009 | 11008 | | |
11010 | 11009 | | |
11011 | | - | |
11012 | | - | |
| 11010 | + | |
11013 | 11011 | | |
11014 | 11012 | | |
11015 | 11013 | | |
| |||
0 commit comments