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

Include headers for malloc() explicitly; fix #6277 #6279

Merged
merged 1 commit into from
May 29, 2024

Conversation

kou
Copy link
Contributor

@kou kou commented May 29, 2024

We need to include stdlib.h and malloc.h to use malloc()/free() but they aren't included in src/string.c with WIN32_LEAN_AND_MEAN. It generates build time warnings.

We can solve this by including stdlib.h and malloc.h explicitly.

We need to include stdlib.h and malloc.h to use malloc()/free() but
they aren't included in src/string.c with WIN32_LEAN_AND_MEAN. It
generates build time warnings.

We can solve this by including stdlib.h and malloc.h explicitly.
@kou kou requested a review from matz as a code owner May 29, 2024 00:49
@github-actions github-actions bot added the core label May 29, 2024
@matz matz merged commit 0a11af7 into mruby:master May 29, 2024
12 of 13 checks passed
@kou kou deleted the windows-lean-and-mean-include branch May 29, 2024 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants