[committed] hpux: Only use long long when __cplusplus >= 201103L

John David Anglin dave@parisc-linux.org
Wed Apr 2 19:12:36 GMT 2025


Committed to trunk.  Tested on hppa64-hp-hpux11.11.

Dave
___

hpux: Only use long long when __cplusplus >= 201103L

Fixes some test failures.

2025-04-02  John David Anglin  <danglin@gcc.gnu.org>

libstdc++-v3/ChangeLog:
	* config/os/hpux/os_defines.h: Only use long long when
	__cplusplus >= 201103L.

diff --git a/libstdc++-v3/config/os/hpux/os_defines.h b/libstdc++-v3/config/os/hpux/os_defines.h
index 30bd4c7ba14..d3a6c5ab142 100644
--- a/libstdc++-v3/config/os/hpux/os_defines.h
+++ b/libstdc++-v3/config/os/hpux/os_defines.h
@@ -57,7 +57,7 @@
    We also force _GLIBCXX_USE_LONG_LONG here so that we don't have
    to bastardize configure to deal with this sillyness.  */
 
-#ifdef __cplusplus
+#if __cplusplus >= 201103L
 namespace std
 {
   extern "C"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250402/1014592d/attachment.sig>


More information about the Libstdc++ mailing list