From 0246934345cad8380f5bc358a0b2ebb9b805ae57 Mon Sep 17 00:00:00 2001 From: tritao Date: Sat, 19 Apr 2025 18:47:16 +0100 Subject: [PATCH] Workaround lack of C99 "static array bound" in `cutils.h`. --- cutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cutils.h b/cutils.h index f2eb44402..50fee11a1 100644 --- a/cutils.h +++ b/cutils.h @@ -98,7 +98,7 @@ extern "C" { #define container_of(ptr, type, member) ((type *)((uint8_t *)(ptr) - offsetof(type, member))) #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__cplusplus) #define minimum_length(n) n #else #define minimum_length(n) static n