include: Add declarations of _alloca and alloca for MSVC mode.
This fixes builds with recent Clang 15 (which still is in development),
which errors out on implicit declarations.
Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 8f8b802e12
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
7db96e3a59
commit
7ad7d8a2c9
1 changed files with 6 additions and 0 deletions
|
@ -77,6 +77,10 @@ _ACRTIMP void* __cdecl _aligned_offset_realloc(void*,size_t,size_t,size_t);
|
||||||
_ACRTIMP size_t __cdecl _get_sbh_threshold(void);
|
_ACRTIMP size_t __cdecl _get_sbh_threshold(void);
|
||||||
_ACRTIMP int __cdecl _set_sbh_threshold(size_t size);
|
_ACRTIMP int __cdecl _set_sbh_threshold(size_t size);
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
void *_alloca(size_t size);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -84,6 +88,8 @@ _ACRTIMP int __cdecl _set_sbh_threshold(size_t size);
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
# define _alloca(x) __builtin_alloca((x))
|
# define _alloca(x) __builtin_alloca((x))
|
||||||
# define alloca(x) __builtin_alloca((x))
|
# define alloca(x) __builtin_alloca((x))
|
||||||
|
# elif defined(_MSC_VER)
|
||||||
|
# define alloca(x) _alloca((x))
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#endif /* __WINE_MALLOC_H */
|
#endif /* __WINE_MALLOC_H */
|
||||||
|
|
Loading…
Add table
Reference in a new issue