[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] dirname.h self-contained?
From: |
Oskar Liljeblad |
Subject: |
[Bug-gnulib] dirname.h self-contained? |
Date: |
Mon, 26 May 2003 23:50:50 +0200 |
User-agent: |
Mutt/1.5.4i |
I don't know if the idea is to make each header file provided by
gnulib self-contained or not, but if it is then dirname.h needs
some #include for size_t. I guess the needed header file is
<stddef.h>.
This patch is related to this problem:
http://mail.gnu.org/archive/html/bug-gnulib/2002-12/msg00044.html
Also, browsing the other gnulib modules I encountered this:
Most of the time stddef.h is included unconditionally, but
sometimes it is included like this (regex.h):
#if !defined _POSIX_C_SOURCE && !defined _POSIX_SOURCE && defined VMS
/* VMS doesn't have `size_t' in <sys/types.h>, even though POSIX says it
should be there. */
# include <stddef.h>
#endif
sometimes like this (fnmatch.c):
#if defined STDC_HEADERS || defined _LIBC
# include <stddef.h>
# include <stdlib.h>
#endif
or like this (localcharset.c):
#if HAVE_STDDEF_H
# include <stddef.h>
#endif
or (printf-args.h):
#ifdef HAVE_WCHAR_T
# include <stddef.h>
#endif
...just to name a few. I want to be picky, so I ask, which one is
correct? :)
Regards,
Oskar Liljeblad (address@hidden)
- [Bug-gnulib] dirname.h self-contained?,
Oskar Liljeblad <=
- Re: [Bug-gnulib] dirname.h self-contained?, James Youngman, 2003/05/26
- Re: [Bug-gnulib] dirname.h self-contained?, Jim Meyering, 2003/05/27
- Re: [Bug-gnulib] dirname.h self-contained?, Bruno Haible, 2003/05/27
- Re: [Bug-gnulib] dirname.h self-contained?, Paul Eggert, 2003/05/27
- Re: [Bug-gnulib] dirname.h self-contained?, Bruno Haible, 2003/05/27
- Re: [Bug-gnulib] dirname.h self-contained?, Jeff Bailey, 2003/05/27
- Re: [Bug-gnulib] dirname.h self-contained?, Paul Eggert, 2003/05/29
- Re: [Bug-gnulib] dirname.h self-contained?, Paul Eggert, 2003/05/29
- Re: [Bug-gnulib] dirname.h self-contained?, Jim Meyering, 2003/05/30
- Re: [Bug-gnulib] dirname.h self-contained?, Bruno Haible, 2003/05/30