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

Fixed compilation when using Clang on Windows #134

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

St0wy
Copy link
Contributor

@St0wy St0wy commented Dec 30, 2024

Clang on Windows defines _MSC_VER so using it for the definition of CLAY_PACKED_ENUM makes it use __pragma with Clang, which it cannot understand. This PR fixes it by replacing #ifdef _MSC_VER with #if defined(_MSC_VER) && !defined(__clang__).

@nicbarker
Copy link
Owner

Thank you for this, nice catch! I don't use Clang on windows so I haven't tested this myself, but we can always fix it again if it's not quite right 🙂

@nicbarker nicbarker merged commit 902ff3b into nicbarker:main Dec 31, 2024
3 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