OSDN Git Service

* config/os/hpux/bits/os_defines.h: Update to avoid #defines
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Dec 2001 16:51:55 +0000 (16:51 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Dec 2001 16:51:55 +0000 (16:51 +0000)
        for strtoll and strtoull.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48271 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/hpux/bits/os_defines.h

index 1332b80..b582580 100644 (file)
@@ -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.
index 323c0c6..322bb56 100644 (file)
    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