Skip to content

c_api: include cstdlib for malloc - #858

Merged
adsharma merged 1 commit into
LadybugDB:mainfrom
Moisan:fix/c-api-malloc-include
Aug 30, 2026
Merged

c_api: include cstdlib for malloc#858
adsharma merged 1 commit into
LadybugDB:mainfrom
Moisan:fix/c-api-malloc-include

Conversation

@Moisan

@Moisan Moisan commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

src/c_api/helpers.cpp calls malloc without including its declaring header.
This relied on transitive standard-library includes and fails with the macOS 14 SDK, this was spotted in Homebrew/homebrew-core#301351.

Include <cstdlib> and use std::malloc explicitly.

@adsharma
adsharma merged commit 9139d98 into LadybugDB:main Aug 30, 2026
4 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