]> Savannah Git Hosting - gnulib.git/commitdiff
stdint: Detect MSVC __typeof__ support.
authorBruno Haible <bruno@clisp.org>
Fri, 20 Dec 2024 08:47:39 +0000 (09:47 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 20 Dec 2024 08:47:39 +0000 (09:47 +0100)
* m4/stdint.m4 (gl_STDINT_H): Copy condition from lib/stdbit.in.h.

ChangeLog
m4/stdint.m4

index 4a453a39f6a062a254a54a1d4a2f977d1b213438..c9f61913d679e55f7cd80e7dc4c60fbded4437ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-20  Bruno Haible  <bruno@clisp.org>
+
+       stdint: Detect MSVC __typeof__ support.
+       * m4/stdint.m4 (gl_STDINT_H): Copy condition from lib/stdbit.in.h.
+
 2024-12-19  Collin Funk  <collin.funk1@gmail.com>
 
        intprops: Detect MSVC __typeof__ support.
index 0a078e64d58d35b883bbcfcbf998fe9ec7806ad3..1f3062a8900839ffd0124b4136d4fe9f9e4efd11 100644 (file)
@@ -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