From 47846c585b70ba56b82f3bef7f13bcf02bc43892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 11 Oct 2024 09:36:11 +0200 Subject: [PATCH] Fix definition of minimum_length It's part of C99 but we require C11 anyway. --- cutils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cutils.h b/cutils.h index 040edf7..5d532be 100644 --- a/cutils.h +++ b/cutils.h @@ -110,10 +110,10 @@ static void *__builtin_frame_address(unsigned int level) { #define container_of(ptr, type, member) ((type *)((uint8_t *)(ptr) - offsetof(type, member))) #endif -#if !defined(_MSC_VER) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#define minimum_length(n) static n +#if defined(_MSC_VER) +#define minimum_length(n) n #else -#define minimum_length(n) n +#define minimum_length(n) static n #endif typedef int BOOL;