[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

This patch is related to this problem:


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>

sometimes like this (fnmatch.c):

  #if defined STDC_HEADERS || defined _LIBC
  # include <stddef.h>
  # include <stdlib.h>

or like this (localcharset.c):

  # include <stddef.h>

or (printf-args.h):

  #ifdef HAVE_WCHAR_T
  # include <stddef.h>

...just to name a few. I want to be picky, so I ask, which one is
correct? :)


Oskar Liljeblad (address@hidden)

reply via email to

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