lottie: portability++

issue: https://github.com/thorvg/thorvg/issues/2764
This commit is contained in:
Hermet Park 2024-10-01 13:59:22 +09:00 committed by Hermet Park
parent ad6f2070fe
commit 13110fbec7

View file

@ -175,7 +175,7 @@ void *__cdecl _alloca (size_t _Size);
* Helper to declare (or mimic) a C99 variable-length array.
*/
#ifndef JERRY_VLA
#define JERRY_VLA(type, name, size) type name[size]
#define JERRY_VLA(type, name, size) type* name = (type*)alloca((size) * sizeof(type))
#endif /* !JERRY_VLA */
/**