diff options
author | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-12 22:31:27 +0000 |
---|---|---|
committer | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-12 22:31:27 +0000 |
commit | db8872471d22c1aa24f26b1d063454217ce51c16 (patch) | |
tree | 7adeb4af0c3de71fe6155a6418a7a381f8c76c1a /libstdc++-v3 | |
parent | f700d4972ea76f47d5470cc30a04771ebdba4941 (diff) | |
download | gcc-db8872471d22c1aa24f26b1d063454217ce51c16.tar.gz |
* gcc/libstdc++-v3/config/os/hpux/bits/os_defines.h
(strtoll, strtoull): In 64 bit mode HP-UX (IA64 and HPPA)
does not define strtoll or strtoull, but does define strtol
and strtoul which are the same since in 64 bit mode
sizeof(long) == sizeof(long long).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 8 | ||||
-rw-r--r-- | libstdc++-v3/config/os/hpux/bits/os_defines.h | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b552f4f6822..1611797b14a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2002-04-12 Steve Ellcey <sje@cup.hp.com> + + * gcc/libstdc++-v3/config/os/hpux/bits/os_defines.h + (strtoll, strtoull): In 64 bit mode HP-UX (IA64 and HPPA) + does not define strtoll or strtoull, but does define strtol + and strtoul which are the same since in 64 bit mode + sizeof(long) == sizeof(long long). + 2002-04-12 Phil Edwards <pme@gcc.gnu.org> * include/std/std_bitset.h: Doxygenate std::bitset<>. Clean up diff --git a/libstdc++-v3/config/os/hpux/bits/os_defines.h b/libstdc++-v3/config/os/hpux/bits/os_defines.h index efc5e7abf4d..4bd2e05c6ba 100644 --- a/libstdc++-v3/config/os/hpux/bits/os_defines.h +++ b/libstdc++-v3/config/os/hpux/bits/os_defines.h @@ -60,10 +60,17 @@ We also force _GLIBCPP_USE_LONG_LONG here so that we don't have to bastardize configure to deal with this sillyness. */ namespace std { +#ifndef __LP64__ __extension__ extern "C" long long strtoll (const char *, char **, int) __asm ("__strtoll"); __extension__ extern "C" unsigned long long strtoull (const char *, char **, int) __asm ("__strtoull"); +#else + __extension__ extern "C" long long strtoll (const char *, char **, int) + __asm ("strtol"); + __extension__ extern "C" unsigned long long strtoull (const char *, char **, int) + __asm ("strtoul"); +#endif } #define _GLIBCPP_USE_LONG_LONG 1 #endif |