This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glob.h lack of #includes


Roland McGrath <roland@frob.com> writes:

> Well, we had such ugly hacks for a long, long time because the standards
> required them, and they worked.

Do you have a proposal how to implement this?  The problem is that
there is no __size_t type.

The only thing I can come up with is

#ifndef __size_t
# ifdef __GNUC__
typedef __SIZE_TYPE__ __size_t;
# else
typedef unsigned long int __size_t;
# endif
#else
# undef __size_t
# define __size_t size_t
#endif


The problem is that stddef.h define __size_t to empty when it defines
size_t.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]