svn commit: samba r16003 - in
branches/SAMBA_4_0/source/lib/replace: .
metze at samba.org
metze at samba.org
Fri Jun 2 12:51:43 GMT 2006
Author: metze
Date: 2006-06-02 12:51:42 +0000 (Fri, 02 Jun 2006)
New Revision: 16003
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16003
Log:
Tru64 doesn't have strtoll/strtoull but the size of 'long' is equal to
the size of 'long long' so we can use strtol/strtoul
Patch from Bjoern Jacke, thanks!
(I only added the SIZEOF_LONG == SIZEOF_LONG_LONG)
metze
Modified:
branches/SAMBA_4_0/source/lib/replace/replace.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/replace.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.c 2006-06-02 08:44:31 UTC (rev 16002)
+++ branches/SAMBA_4_0/source/lib/replace/replace.c 2006-06-02 12:51:42 UTC (rev 16003)
@@ -394,6 +394,8 @@
return strtouq(str, endptr, base);
#elif defined(HAVE___STRTOULL)
return __strtoull(str, endptr, base);
+#elif SIZEOF_LONG == SIZEOF_LONG_LONG
+ return (unsigned long long int) strtoul(str, endptr, base);
#else
# error "You need a strtoull function"
#endif
@@ -407,6 +409,8 @@
return strtoq(str, endptr, base);
#elif defined(HAVE___STRTOLL)
return __strtoll(str, endptr, base);
+#elif SIZEOF_LONG == SIZEOF_LONG_LONG
+ return (long long int) strtol(str, endptr, base);
#else
# error "You need a strtoll function"
#endif
More information about the samba-cvs
mailing list