kaffe-1.0.b1: fix for calloc macro breaks prototypes

Ben Laurie kaffe@rufus.w3.org
Wed, 15 Jul 1998 10:09:33 +0100


Simon J. Gerraty wrote:
> 
> In a quick attempt to compile kaffe on Solaris 2.6 using gcc-2.7.2
> The following macro:
> 
> kaffe-1.0.b1/include/jmalloc.h:25:#define    calloc(A, B)    __malloc((A)*(B))

Isn't the right way to fix this to reorder the includes so that calloc
isn't defined before the standard headers are included?

Better yet, of course, is to not call it calloc!

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org/
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author     http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache/

WE'RE RECRUITING! http://www.aldigital.co.uk/recruit/