summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-07-21 09:48:09 +0200
committerBruno Haible <bruno@clisp.org>2020-07-21 09:48:09 +0200
commite747e8f9f585cfcc58935ae5b98884ad5e367b9d (patch)
treedf8e387ef045eb5f2ddcbf6d11568ed70cf45316 /m4
parent6c61644f385f133f38ed8a8c6dbdc98fea6a1ef9 (diff)
downloadgnulib-e747e8f9f585cfcc58935ae5b98884ad5e367b9d.tar.gz
printf-posix: Make an autoconf test more future-proof.
* m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before using uintptr_t.
Diffstat (limited to 'm4')
-rw-r--r--m4/printf.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/printf.m4 b/m4/printf.m4
index df473d8788..fba8501d71 100644
--- a/m4/printf.m4
+++ b/m4/printf.m4
@@ -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,