diff options
author | Jeff Law <law@redhat.com> | 2001-12-22 09:51:55 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2001-12-22 09:51:55 -0700 |
commit | d599b3fc8a66a32a79a91359985b295f81e62a4d (patch) | |
tree | 8b52c22c630011b2ec399d972ba9d8c687f4319a | |
parent | 4891442b1f7dcf81fb2d8772cc4adb6123194350 (diff) | |
download | gcc-d599b3fc8a66a32a79a91359985b295f81e62a4d.zip gcc-d599b3fc8a66a32a79a91359985b295f81e62a4d.tar.gz gcc-d599b3fc8a66a32a79a91359985b295f81e62a4d.tar.bz2 |
os_defines.h: Update to avoid #defines for strtoll and strtoull.
* config/os/hpux/bits/os_defines.h: Update to avoid #defines
for strtoll and strtoull.
From-SVN: r48271
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/config/os/hpux/bits/os_defines.h | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1332b80..b582580 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +Sat Dec 22 09:52:41 2001 Jeffrey A Law (law@redhat.com) + + * config/os/hpux/bits/os_defines.h: Update to avoid #defines + for strtoll and strtoull. + Fri Dec 21 17:35:21 2001 Jeffrey A Law (law@redhat.com) * config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h. diff --git a/libstdc++-v3/config/os/hpux/bits/os_defines.h b/libstdc++-v3/config/os/hpux/bits/os_defines.h index 323c0c6..322bb56 100644 --- a/libstdc++-v3/config/os/hpux/bits/os_defines.h +++ b/libstdc++-v3/config/os/hpux/bits/os_defines.h @@ -61,8 +61,12 @@ We also force _GLIBCPP_USE_LONG_LONG here so that we don't have to bastardize configure to deal with this sillyness. */ #include <sys/_inttypes.h> -#define strtoll __strtoll -#define strtoull __strtoull +namespace std { + extern "C" long long strtoll (const char *, char **, int) + __asm ("__strtoll"); + extern "C" long long strtoull (const char *, char **, int) + __asm ("__strtoull"); +} extern intmax_t __strtoll (const char *, char**, int); extern uintmax_t __strtoull (const char *, char**, int); #define _GLIBCPP_USE_LONG_LONG 1 |