Skip to content

Commit

Permalink
Fix missing stdlib.h include for free()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lazka committed Jan 14, 2025
1 parent f1555ae commit bca9fff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/avrdude.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define avrdude_h

#include <stdio.h>
#include <stdlib.h>

#define SYSTEM_CONF_FILE "avrdude.conf"

Expand Down

0 comments on commit bca9fff

Please sign in to comment.