[cfe-commits] r58849 - /cfe/trunk/test/Analysis/stack-addr-ps.c

Ted Kremenek kremenek at apple.com
Fri Nov 7 09:10:09 PST 2008


On Nov 7, 2008, at 7:52 AM, Argiris Kirtzidis wrote:

> Anders Carlsson wrote:
>>
>> malloc.h isn't available on all systems - it's not available in OS X
>> for example. What platform requires this?
>
> Oh sorry, I didn't know that.
> Mingw requires this. Is it ok if I put mingw-specific #if/defs  
> around it ?

Another possibility is to test if alloca is present; #ifdef alloca?   
If it isn't, we just #ifdef out the function in stack-addr-ps.c that  
uses alloca.



More information about the cfe-commits mailing list