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

Dave
---

libstdc++: Declare strtoll and strtoull in global namespace on HP-UX

These missing declations were noticed by Jonathan Wakely.

2026-12-02  John David Anglin  <[email protected]>

libstdc++-v3/ChangeLog:

        * config/os/hpux/os_defines.h (strtoll, strtoull): Declare in global
        namespace for C++.

diff --git a/libstdc++-v3/config/os/hpux/os_defines.h 
b/libstdc++-v3/config/os/hpux/os_defines.h
index a525298e558..fd9cce6adf4 100644
--- a/libstdc++-v3/config/os/hpux/os_defines.h
+++ b/libstdc++-v3/config/os/hpux/os_defines.h
@@ -72,7 +72,9 @@ namespace std
 #endif
   }
 } // namespace std
-#endif // __cplusplus
+using std::strtoll;
+using std::strtoull;
+#endif // __cplusplus >= 201103L
 
 // HPUX on IA64 requires vtable to be 64 bit aligned even at 32 bit
 // mode.  We need to pad the vtable structure to achieve this.

Attachment: signature.asc
Description: PGP signature

Reply via email to