Fix missing stdlib.h include for free()

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
This commit is contained in:
Christoph Reiter
2025-01-14 20:28:52 +01:00
parent f1555aefb3
commit bca9fff70a

View File

@@ -20,6 +20,7 @@
#define avrdude_h
#include <stdio.h>
#include <stdlib.h>
#define SYSTEM_CONF_FILE "avrdude.conf"