From: Bruno Haible Date: Fri, 20 Dec 2024 08:47:39 +0000 (+0100) Subject: stdint: Detect MSVC __typeof__ support. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=4631e9b4d5d3bd5ba42864c7001cf3509a00c7b3;p=gnulib.git stdint: Detect MSVC __typeof__ support. * m4/stdint.m4 (gl_STDINT_H): Copy condition from lib/stdbit.in.h. --- diff --git a/ChangeLog b/ChangeLog index 4a453a39f6..c9f61913d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-12-20 Bruno Haible + + stdint: Detect MSVC __typeof__ support. + * m4/stdint.m4 (gl_STDINT_H): Copy condition from lib/stdbit.in.h. + 2024-12-19 Collin Funk intprops: Detect MSVC __typeof__ support. diff --git a/m4/stdint.m4 b/m4/stdint.m4 index 0a078e64d5..1f3062a890 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,5 +1,5 @@ # stdint.m4 -# serial 63 +# serial 64 dnl Copyright (C) 2001-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -158,7 +158,7 @@ uintmax_t j = UINTMAX_MAX; || defined __clang__) int k = _Generic (SIZE_MAX, size_t: 0); #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ - || (0x5110 <= __SUNPRO_C && !__STDC__)) + || (0x5110 <= __SUNPRO_C && !__STDC__) || 1939 <= _MSC_VER) extern size_t k; extern __typeof__ (SIZE_MAX) k; #endif