Fixed alloca handling the way mingw does it (reported by Vincent

Béron).
This commit is contained in:
Alexandre Julliard 2003-04-17 02:40:21 +00:00
parent 150cd5a784
commit 1b41cdf3d1
1 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,6 @@ typedef struct _heapinfo
extern "C" {
#endif
void* _alloca(MSVCRT(size_t));
void* _expand(void*,MSVCRT(size_t));
int _heapadd(void*,MSVCRT(size_t));
int _heapchk(void);
@ -79,9 +78,11 @@ void* MSVCRT(realloc)(void*,MSVCRT(size_t));
}
#endif
#ifndef USE_MSVCRT_PREFIX
static inline void* alloca(MSVCRT(size_t) i) { return _alloca(i); }
# ifdef __GNUC__
# define _alloca(x) __builtin_alloca((x))
# define alloca(x) __builtin_alloca((x))
# endif
#endif /* USE_MSVCRT_PREFIX */
#endif /* __WINE_MALLOC_H */