diff options
Diffstat (limited to 'lib/quickjs/cutils.h')
-rw-r--r-- | lib/quickjs/cutils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/quickjs/cutils.h b/lib/quickjs/cutils.h index 11246e3c..f079e5c5 100644 --- a/lib/quickjs/cutils.h +++ b/lib/quickjs/cutils.h @@ -51,6 +51,12 @@ #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 +#else +#define minimum_length(n) n +#endif + typedef int BOOL; #ifndef FALSE |