[Python-Dev] Re: [win32] Killing MSVC's _alloca

Norman Vine Norman Vine" <nhv@cape.com
Tue, 8 Oct 2002 08:47:24 -0400


"Martin v. Loewis" <martin@v.loewis.de> wrote in message
news:m3bs65xtlk.fsf@mira.informatik.hu-berlin.de...
> "Delaney, Timothy" <tdelaney@avaya.com> writes:
>
> > None at all. MinGW is not a Unix emulation. There is a minimal shell
> > environment (MSYS) which works with MinGW (allowing use of the
autoconf/make
> > toolchain) but the produced binaries have no reliance on anything except
the
> > native win32 libraries.
>
> To me, this is a clear indication that there is a bug in mingw
> here. If they want to be a Windows compiler, they have to provide MSVC
> compatibility (and they do, to some degree); this also means they have
> to provide _alloca, since this is the Windows name of that feature.

#ifdef __MINGW32__
 #ifndef _alloca
  #define _alloca(x) __builtin_alloca(x)
 #endif
#endif

HTH

Norman