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

Compile with C99 features on Windows. #1101

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

goodusername123
Copy link
Contributor

Windows (MSVC) has had support for C99 features for quite a while now (since 2013?) so no reason to restrict it to C89, Also some features that are specific to Pluto (such as math.round) already have a hard requirement for C99 anyways.

In regular PUC Lua the only places that really take advantage of C99 cross-platform are math.log when it's second argument is 2 and some core functions around the codebase trying to hint to the compiler to be inlined as far as I can tell.

I did a few test compiles myself with MSVC on Windows using the provided solution file just to make sure it didn't throw a fit and all seemed to work fine.

Windows (MSVC) has had support for C99 features for quite a while now (since 2013?) so no reason to restrict it to C89, Also some features that are specific to Pluto (such as `math.round`) already have a hard requirement for C99 anyways.

In regular PUC Lua the only places that really take advantage of C99 cross-platform are `math.log` when it's second argument is `2` and some core functions around the codebase trying to hint to the compiler to be inlined.
@Sainan Sainan merged commit 84c6cd2 into PlutoLang:main Feb 9, 2025
9 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