Re: [PATCH] inttypes, stdint: add C++11 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No further comment, so I pushed that patch into gnulib,
with the following further changes to document it:

* doc/posix-headers/inttypes.texi (inttypes.h):
* doc/posix-headers/stdint.texi (stdint.h): Document this.
diff --git a/doc/posix-headers/inttypes.texi b/doc/posix-headers/inttypes.texi
index c1720e5..6ef87bb 100644
--- a/doc/posix-headers/inttypes.texi
+++ b/doc/posix-headers/inttypes.texi
@@ -22,6 +22,10 @@ NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, BeOS.
 The declarations of @code{strtoimax} and @code{strtoumax} are missing on some
 platforms:
 OpenBSD 3.8, AIX 4.3.2, AIX 5.1 (missing only @code{strtoumax}), OSF/1 5.1.
+@item
+On some hosts that predate C++11, when using C++ one must define
+@code{__STDC_FORMAT_MACROS} to make visible the declarations of format
+macros such as @code{PRIdMAX}.
 @end itemize
 
 Portability problems not fixed by Gnulib:
diff --git a/doc/posix-headers/stdint.texi b/doc/posix-headers/stdint.texi
index 3730166..be19269 100644
--- a/doc/posix-headers/stdint.texi
+++ b/doc/posix-headers/stdint.texi
@@ -27,6 +27,12 @@ HP-UX 11.23.
 The macros @code{WCHAR_MIN} and @code{WCHAR_MAX} are not defined in
 @code{<stdint.h>} (only in @code{<wchar.h>}) on some platforms:
 Dragonfly, BSDI.
+@item
+On some hosts that predate C++11, when using C++ one must define
+@code{__STDC_CONSTANT_MACROS} to make visible the definitions of
+constant macros such as @code{INTMAX_C}, and one must define
+@code{__STDC_LIMIT_MACROS} to make visible the definitions of limit
+macros such as @code{INTMAX_MAX}.
 @end itemize
 
 Portability problems not fixed by Gnulib:

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux