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

John David Anglin dave.anglin@bell.net
Wed Dec 2 19:59:42 GMT 2026


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  <danglin@gcc.gnu.org>

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.
-------------- 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/20261202/b9511382/attachment.sig>


More information about the Libstdc++ mailing list