1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00

support GNU format printf and scanf on mingw

Allow %lld and %Lf to work on mingw as per:
http://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/
This commit is contained in:
Pádraig Brady
2014-12-02 13:34:06 +00:00
committed by Eric Blake
parent 3914f31535
commit cf88e56ab3
6 changed files with 12 additions and 0 deletions

View File

@@ -68,6 +68,10 @@ dnl configure.ac when using autoheader 2.62.
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
# undef _GNU_SOURCE # undef _GNU_SOURCE
#endif #endif
/* Use GNU style printf and scanf. */
#ifndef __USE_MINGW_ANSI_STDIO
# undef __USE_MINGW_ANSI_STDIO
#endif
/* Enable threading extensions on Solaris. */ /* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS #ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS
@@ -100,6 +104,7 @@ dnl configure.ac when using autoheader 2.62.
AC_DEFINE([_ALL_SOURCE]) AC_DEFINE([_ALL_SOURCE])
AC_DEFINE([_DARWIN_C_SOURCE]) AC_DEFINE([_DARWIN_C_SOURCE])
AC_DEFINE([_GNU_SOURCE]) AC_DEFINE([_GNU_SOURCE])
AC_DEFINE([__USE_MINGW_ANSI_STDIO])
AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
AC_DEFINE([_TANDEM_SOURCE]) AC_DEFINE([_TANDEM_SOURCE])
AC_CACHE_CHECK([whether _XOPEN_SOURCE should be defined], AC_CACHE_CHECK([whether _XOPEN_SOURCE should be defined],

View File

@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_STDIO_H], AC_DEFUN([gl_STDIO_H],
[ [
dnl For __USE_MINGW_ANSI_STDIO
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([gl_STDIO_H_DEFAULTS])
gl_NEXT_HEADERS([stdio.h]) gl_NEXT_HEADERS([stdio.h])

View File

@@ -8,6 +8,7 @@ lib/dtoastr.c
m4/c-strtod.m4 m4/c-strtod.m4
Depends-on: Depends-on:
extensions
intprops intprops
configure.ac: configure.ac:

View File

@@ -7,6 +7,7 @@ lib/ftoastr.c
m4/c-strtod.m4 m4/c-strtod.m4
Depends-on: Depends-on:
extensions
intprops intprops
configure.ac: configure.ac:

View File

@@ -8,6 +8,7 @@ lib/ldtoastr.c
m4/c-strtod.m4 m4/c-strtod.m4
Depends-on: Depends-on:
extensions
intprops intprops
configure.ac: configure.ac:

View File

@@ -6,6 +6,7 @@ lib/stdio.in.h
m4/stdio_h.m4 m4/stdio_h.m4
Depends-on: Depends-on:
extensions
include_next include_next
snippet/arg-nonnull snippet/arg-nonnull
snippet/c++defs snippet/c++defs