Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Windows detection for URI methods. #891

Merged
merged 2 commits into from
May 28, 2024
Merged

Change Windows detection for URI methods. #891

merged 2 commits into from
May 28, 2024

Conversation

kring
Copy link
Member

@kring kring commented May 27, 2024

Instead of:

if constexpr (std::filesystem::path::preferred_separator == '\\')`

We now do:

#ifdef _WIN32

Because the former won't work on versions of iOS prior to 13.0.

See CesiumGS/cesium-unreal#1431

I considered fixing this by ifdef'ing for an old version of iOS specifically, but it would be more complicated and the benefit is vanishingly small.

@csciguy8 originally suggested just using #ifdef _WIN32 here, but I tried to be clever.

Instead of:

```
if constexpr (std::filesystem::path::preferred_separator == '\\')`
```

We now do:

```
```

Because the former won't work on versions of iOS prior to 13.0.
@j9liu
Copy link
Contributor

j9liu commented May 28, 2024

Looks good to me, thanks @kring !

@j9liu j9liu merged commit e6883ad into main May 28, 2024
24 checks passed
@j9liu j9liu deleted the ios-fix branch May 28, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants