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  <dang...@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"

Attachment: signature.asc
Description: PGP signature

Reply via email to