This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hpux vs long long libstdc++-v3


>>>>> "law" == law  <law@redhat.com> writes:

>   #include <sys/_inttypes.h>
> ! 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);

You shouldn't need the __ prototypes; if you do provide them, they should
be extern "C".  Are intmax_t and uintmax_t different from long long?

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]