Skip to content

Correct includes in cpp2util.h for MacOSX12.3 SDK #16

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

Conversation

filipsajdak
Copy link
Contributor

On MacOSX 12.3 SDK there is no <memory_resource> header there is <experimental/memory_resource> - check with __has_include to include existing one.

There was no <cuchar> and <stop_token> - add checking if it is present.

This PR was previously: #12

On MacOSX 12.3 SDK there is no <memory_resource> header
there is <experimental/memory_resource> - check with __has_include
to include existing one.

There was no <cuchar> and <stop_token> - add checking if it is present.
@filipsajdak filipsajdak force-pushed the fsajdak-fix-macos-sdk-cpp2util-inlcludes branch from 91e6916 to 12e0d23 Compare September 26, 2022 01:04
@hsutter
Copy link
Owner

hsutter commented Oct 1, 2022

Thanks! I committed a change that adds three of the four requested feature test guards, but didn't add the fallback to experimental/memory_resource... I'm trying to avoid the experimental headers.

@hsutter hsutter self-assigned this Oct 1, 2022
Azmah-Bad pushed a commit to Azmah-Bad/cppfront that referenced this pull request Feb 24, 2023
Azmah-Bad pushed a commit to Azmah-Bad/cppfront that referenced this pull request Feb 24, 2023
I was trying to rely on only the named feature tests, but if adding this `__has_include` can unblock someone then let's do it.
Also add a `(void)` cast to `~c_raii()` to silence a Clang warning
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.

3 participants