Commit 11e2405
committed
osx: fix inconsistent use of the macro
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.TARGET_OS_OSX
1 parent fe7fe15 commit 11e2405
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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