This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: glob.h lack of #includes
- To: GNU libc hacker <libc-hacker@gnu.org>
- Subject: Re: glob.h lack of #includes
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 12 Aug 1998 09:39:15 -0700
- References: <199808120426.AAA08683@baalperazim.frob.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------