This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: __strtoll, __strtoull and _GLIBCPP_USE_LONG_LONG under hppa64-hpux


> Since strtoll and strtoull are not available, is a reasonable solution
> to this problem just to add an ifdef __LP64__ to hpux/os_defines.h
> defining _GLIBCPP_USE_LONG_LONG to be 0?  We need to eliminate the
> undefined symbols.

strtoll and strtoull are available, just under different names.  Since
both longs and long longs are 64 bits in __LP64__ mode we need to use
_strtol and _strtoul instead of _strtoll and _strtoull.  I would rather
go back to the patch that Jessica Han sent (and then I re-sent) to
simply use those names.  Its not 'substantially' more ugly then what we
are currently doing, fixes the problems, and has no drawbacks (other
then uglyness) that I know of.  The original rejection of it was in
hopes of finding a cleaner more general solution but those seem to have
all failed.

See http://gcc.gnu.org/ml/libstdc++/2002-03/msg00164.html for my version
of the patch.  It has been tested on HPPA and IA HP-UX.

Steve Ellcey
sje@cup.hp.com


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