OSDN Git Service

* include/malloc.h (_alloca): Add definition.
authorearnie <earnie>
Thu, 12 Dec 2002 21:00:57 +0000 (21:00 +0000)
committerearnie <earnie>
Thu, 12 Dec 2002 21:00:57 +0000 (21:00 +0000)
(alloca): Ditto.

winsup/mingw/ChangeLog
winsup/mingw/include/malloc.h

index f1a23e2..f3971b9 100644 (file)
@@ -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.
index 9c41240..097a5e1 100644 (file)
@@ -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. */