diff options
Diffstat (limited to 'winsup/mingw/include/malloc.h')
-rw-r--r-- | winsup/mingw/include/malloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/mingw/include/malloc.h b/winsup/mingw/include/malloc.h index 9c412404b..097a5e1c1 100644 --- a/winsup/mingw/include/malloc.h +++ b/winsup/mingw/include/malloc.h @@ -61,9 +61,15 @@ extern "C" { but not W9x. On latter, they always set errno to ENOSYS. */ int _heapwalk (_HEAPINFO*); +#ifdef __GNUC__ +#define _alloca(x) __builtin_alloca((x)) +#endif #ifndef _NO_OLDNAMES int heapwalk (_HEAPINFO*); +#ifdef __GNUC__ +#define alloca(x) __builtin_alloca((x)) +#endif #endif /* Not _NO_OLDNAMES */ int _heapchk (void); /* Verify heap integrety. */ |