From 5f4a6dc2fb6cfcab44094319c94dadbad275199c Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Mon, 23 Sep 2024 10:55:49 -0500 Subject: [PATCH] AP_HAL_ChibiOS: remove dependency on tmpnam tmpnam is never linked and not necessary, and naming it/redefining it introduces problems on platforms that do have a definition. --- libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h index 37bcb942ea..983daba0f7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h @@ -48,8 +48,6 @@ void *realloc(void* ptr, size_t size) __attribute__((deprecated)); extern int (*vprintf_console_hook)(const char *fmt, va_list arg); void malloc_check(const void *ptr); -#define L_tmpnam 32 - #ifdef __cplusplus } #endif