This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _GLIBC_EXTENSION


On Jan 17 10:48, Sebastian Huber wrote:
> Hello,
> 
> there is a _GLIBC_EXTENSION define which is used here:
> 
> grep -r _GLIBC_EXTENSION .
> ./newlib/ChangeLog:     systems defining _GLIBC_EXTENSION.  Support C11 'x' flag.
> ./newlib/ChangeLog:     * libc/stdio/vfprintf.c (_VFPRINTF_R)
> [_GLIBC_EXTENSION]: Handle 'm'
> ./newlib/ChangeLog:     * libc/stdio/vfwprintf.c (_VFWPRINTF_R)
> [_GLIBC_EXTENSION]: Ditto.
> ./newlib/libc/stdio/vfprintf.c:#ifdef _GLIBC_EXTENSION
> ./newlib/libc/stdio/vfprintf.c:#ifdef _GLIBC_EXTENSION
> ./newlib/libc/stdio/vfwprintf.c:#ifdef _GLIBC_EXTENSION
> ./newlib/libc/stdio/vfwprintf.c:#ifdef _GLIBC_EXTENSION
> 
> Who is supposed to set this define?

It's supposed to be set on a per-target basis in sys/config.h.
Cygwin includes its own cygwin/config.h there, which also
defines _GLIBC_EXTENSION:

  #define __FILENAME_MAX__ 4096
  #define _READ_WRITE_RETURN_TYPE _ssize_t
  #define _READ_WRITE_BUFSIZE_TYPE size_t
  #define __LARGE64_FILES 1
  #define __USE_INTERNAL_STAT64 1
  #define __LINUX_ERRNO_EXTENSIONS__ 1
  #define _MB_EXTENDED_CHARSETS_ALL 1
  #define __HAVE_LOCALE_INFO__ 1
  #define __HAVE_LOCALE_INFO_EXTENDED__ 1
  #define _WANT_C99_TIME_FORMATS 1
  #define _GLIBC_EXTENSION 1


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpmsNYstpmlQ.pgp
Description: PGP signature


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