In your case, using code written for MSVC, the
#define _alloca alloca
is correct.
However, I'm still not sure that code witten for gcc
might sometimes reference _alloca (the alloca helper
function that lives in libgcc.a) intentionally. I doubt it
but ...
I'll try building gcc and binutils with your define in
malloc.h and se what happens.
Danny
Danny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=11494
Unfortunately, I don't think its that easy. Have a look at
this thread.
http://gcc.gnu.org/ml/gcc/1999-01n/msg00198.html
There was a discussion of this on mingw users list a
while back, but I can't recall the outcome .
Danny
Danny
Logged In: YES
user_id=11494
Here is the thread to which I referred in earlier post:
http://www.geocrawler.com/mail/thread.php3?
subject=alloca%28%29+problem+%28Re%3A+%
5BMingw-users%5D+union+cast+errors%3F%
29&list=6013
In your case, using code written for MSVC, the
#define _alloca alloca
is correct.
However, I'm still not sure that code witten for gcc
might sometimes reference _alloca (the alloca helper
function that lives in libgcc.a) intentionally. I doubt it
but ...
I'll try building gcc and binutils with your define in
malloc.h and se what happens.
Danny
Danny