[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] Re: GNULIB readlink module

From: Bruno Haible
Subject: Re: [Bug-gnulib] Re: GNULIB readlink module
Date: Fri, 5 Nov 2004 22:52:12 +0100
User-agent: KMail/1.5

Mark D. Baushke wrote:
> The purpose of the GNULIB readlink module seems to be to provide a stub
> primarily for Windows platofrms.
> The odd thing is that it does not compile on those platforms unless
> the config.h file has a '#define size_t unsigned' in it because it
> assumes that the size_t type is found in the <sys/types.h> file.
> Under windows, this is apparently not a good assumption.

ok, I've added a #include <stddef.h>. Thanks for the report.

> I suspect that whoever is looking for size_t may wish to consider
> looking in more than one place as we move forward

If you need size_t defined in a portable way, you can include either
<stddef.h> or <stdlib.h>; autoconf does the rest. If only size_t is needed,
we prefer <stddef.h> because it's smaller (less namespace pollution).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]