[m-rev.] diff: avoid a warning from gcc

Julien Fischer juliensf at cs.mu.OZ.AU
Thu Mar 2 16:57:07 AEDT 2006


On Thu, 2 Mar 2006, Julien Fischer wrote:

>
> Estimated hours taken: 0.5
> Branches: main
>
> Avoid warnings about implicit declaration of memalign in nogc grades.
>
> Note: we'll eventually be moving to posix_memalign but we havent' yet
>       tested the version that uses that.
>
> configure.in:
> runtime/mercury_conf.h.in:
> 	Check for malloc.h which we need for memalign on some systems, e.g.
> 	Linux.
>
> runtime/mercury_memory_zones.c:
> 	Conditionally include malloc.h if it available, since we need
> 	it for memalign on some architectures.
>
Also:
	Don't use the macro MR_HAVE_STDLIB_H since we don't define
	it anywhere.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list