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

Better compatibility with MSVC compiler #124

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

ScriptExec
Copy link
Contributor

This commit removes the need to include /Zc:__cplusplus in Visual Studio projects, by replacing __cplusplus macro with utf8_cplusplus, which uses _MSVC_LANG to get the current C++ version. On other compilers utf8_cplusplus is defined as __cplusplus.

@sheredom
Copy link
Owner

There is some Microsoft Visual Studio 14.0 specific failure with this change.

@ScriptExec
Copy link
Contributor Author

I will try to fix the issue, which is most likely related to constexpr not being fully implemented in Microsoft's C++14 in the Visual Studio 14.

@sheredom
Copy link
Owner

I think the macos runners must be dead now (I'll do a followup PR), thanks for the change and sorry for being slow to respond!

@sheredom sheredom merged commit a781470 into sheredom:master Jul 17, 2024
45 of 49 checks passed
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