]> Savannah Git Hosting - gnulib.git/commitdiff
stdint: port intptr_t to more-recent MinGW
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Aug 2020 18:27:48 +0000 (11:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Aug 2020 18:28:09 +0000 (11:28 -0700)
Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
* lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
Apparently those two macros were removed in mingwrt-3.22
dated 2016-07-14.

ChangeLog
lib/stdint.in.h

index 986b882a697b77ee05946eb0ab237296f692706a..20319c82a0ace82a60f04caed02147bec6b79c7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       stdint: port intptr_t to more-recent MinGW
+       Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
+       * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
+       even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
+       Apparently those two macros were removed in mingwrt-3.22
+       dated 2016-07-14.
+
 2020-08-12  Bruno Haible  <bruno@clisp.org>
 
        thread-optim: Export function-like macros only.
index 324f5e8b26c71cc5f1cc5fb44064eb2a9fcea255..cbfb53b4383cdda26237fa2409f88d228e75254d 100644 (file)
@@ -302,12 +302,11 @@ typedef gl_uint_fast32_t gl_uint_fast16_t;
 /* kLIBC's <stdint.h> defines _INTPTR_T_DECLARED and needs its own
    definitions of intptr_t and uintptr_t (which use int and unsigned)
    to avoid clashes with declarations of system functions like sbrk.
-   Similarly, mingw 5.22 <crtdefs.h> defines _INTPTR_T_DEFINED and
-   _UINTPTR_T_DEFINED and needs its own definitions of intptr_t and
+   Similarly, MinGW WSL-5.4.1 <stdint.h> needs its own intptr_t and
    uintptr_t to avoid conflicting declarations of system functions like
    _findclose in <io.h>.  */
 # if !((defined __KLIBC__ && defined _INTPTR_T_DECLARED) \
-       || (defined __MINGW32__ && defined _INTPTR_T_DEFINED && defined _UINTPTR_T_DEFINED))
+       || defined __MINGW32__)
 #  undef intptr_t
 #  undef uintptr_t
 #  ifdef _WIN64