Re: Re: GNULIB readlink module

Bruno Haible <[email protected]> Fri, 5 Nov 2004 22:52:12 +0100
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs
Message-ID <[email protected]>
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).

Bruno