_GLIBC_EXTENSION

Corinna Vinschen vinschen@redhat.com
Fri Jan 17 09:59:00 GMT 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20140117/0c381f02/attachment.sig>


More information about the Newlib mailing list