mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Fix definition of minimum_length
It's part of C99 but we require C11 anyway.
This commit is contained in:
parent
b9be6d4ff2
commit
47846c585b
1 changed files with 3 additions and 3 deletions
6
cutils.h
6
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;
|
||||
|
|
Loading…
Reference in a new issue