]> Savannah Git Hosting - gnulib.git/commitdiff
printf-posix: Make an autoconf test more future-proof.
authorBruno Haible <bruno@clisp.org>
Tue, 21 Jul 2020 07:48:09 +0000 (09:48 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 21 Jul 2020 07:48:09 +0000 (09:48 +0200)
* m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
using uintptr_t.

ChangeLog
m4/printf.m4

index 290e933f2f3bebf9267e51c461ea3297db720383..7ebfe9ebdc136279ea10682f5d8a05981727cb44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-07-21  Bruno Haible  <bruno@clisp.org>
+
+       printf-posix: Make an autoconf test more future-proof.
+       * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
+       using uintptr_t.
+
 2020-07-20  Bruno Haible  <bruno@clisp.org>
 
        list, oset, omap: Relicense some of the container modules under LGPLv2+.
index df473d8788822aeae50c036326748ef40352aba6..fba8501d71e10aa6228c93faa434541c23f5ad7c 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 64
+# printf.m4 serial 65
 dnl Copyright (C) 2003, 2007-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -680,7 +680,10 @@ AC_DEFUN([gl_PRINTF_DIRECTIVE_N],
 #include <stdlib.h>
 #include <string.h>
 #ifdef _MSC_VER
-/* See page about "Parameter Validation" on msdn.microsoft.com.  */
+#include <inttypes.h>
+/* See page about "Parameter Validation" on msdn.microsoft.com.
+   <https://docs.microsoft.com/en-us/cpp/c-runtime-library/parameter-validation>
+   <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/set-invalid-parameter-handler-set-thread-local-invalid-parameter-handler>  */
 static void cdecl
 invalid_parameter_handler (const wchar_t *expression,
                            const wchar_t *function,