mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
lottie: portability++
issue: https://github.com/thorvg/thorvg/issues/2764
This commit is contained in:
parent
ad6f2070fe
commit
13110fbec7
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue