diff options
author | Earnie Boyd <earnie@users.sf.net> | 2002-12-13 00:00:57 +0300 |
---|---|---|
committer | Earnie Boyd <earnie@users.sf.net> | 2002-12-13 00:00:57 +0300 |
commit | 51e1a2f296577422919383a137b67035fa71a2df (patch) | |
tree | fa96e4a7131f15de37591d36f117d7a19ca1892b /winsup/mingw | |
parent | 24f7d30fa9fe63de4e13aa36f36c04afc6f7290b (diff) |
* include/malloc.h (_alloca): Add definition.
(alloca): Ditto.
Diffstat (limited to 'winsup/mingw')
-rw-r--r-- | winsup/mingw/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/mingw/include/malloc.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index f1a23e261..f3971b9a4 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,8 @@ +2002-12-12 Earnie Boyd <earnie@users.sf.net> + + * include/malloc.h (_alloca): Add definition. + (alloca): Ditto. + 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net> * mingwex/math/s_erf.c: New file. 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. */ |