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

Fix missing stdlib.h include for free() #1941

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lazka
Copy link

@lazka lazka commented Jan 14, 2025

Building avrdude with current clang+mingw-w64 for arm64 on Windows leads to the following error:
serbb_win32.c:294:3: error: call to undeclared library function 'free' with type 'void (void *)'

Explicitely import stdlib.h for free() in avrdude.h where mmt_free() is defind to free() to fix this.

Fixes #1940

Building avrdude with current clang+mingw-w64 for arm64 on Windows
leads to the following error:
serbb_win32.c:294:3: error: call to undeclared library function 'free' with type 'void (void *)'

Explicitely import stdlib.h for free() in avrdude.h
where mmt_free() is defind to free() to fix this.

Fixes avrdudes#1940
@stefanrueger
Copy link
Collaborator

Perfect. I'll merge at the next mergefest. Thanks for the contribution.

@stefanrueger stefanrueger added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to build on Windows with recent clang
2 participants