Skip to content

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

Merged
matz merged 1 commit into
mruby:masterfrom
kou:windows-lean-and-mean-include
May 29, 2024
Merged

Include headers for malloc() explicitly; fix #6277#6279
matz merged 1 commit into
mruby:masterfrom
kou:windows-lean-and-mean-include

Conversation

@kou

@kou kou commented May 29, 2024

Copy link
Copy Markdown
Contributor

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
@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.

2 participants