Skip to content

Commit

Permalink
Fix definition of minimum_length
Browse files Browse the repository at this point in the history
It's part of C99 but we require C11 anyway.
  • Loading branch information
saghul committed Oct 13, 2024
1 parent b9be6d4 commit 8a62a4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8a62a4b

Please sign in to comment.