This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
- was RE: [PATCH perl@12443] VMS64-bitconfigure
authorJohn Peacock <jpeacock@rowman.com>
Wed, 24 Oct 2001 16:53:29 +0000 (12:53 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 25 Oct 2001 00:03:07 +0000 (00:03 +0000)
Message-ID: <3BD72A49.1508D152@rowman.com>

p4raw-id: //depot/perl@12630

configure.com

index 04144ad..cb4654a 100644 (file)
@@ -4990,7 +4990,13 @@ $ WC "cpplast='" + cpplast + "'"
 $ WC "cppminus='" + cppminus + "'"
 $ WC "cpprun='" + cpprun + "'"
 $ WC "cppstdin='" + cppstdin + "'"
-$ WC "d_Gconvert='my_gconvert(x,n,t,b)'"
+$ IF use64bitint .OR. use64bitint .EQS. "define"
+$ THEN
+$!  gcvt() does not work for > 16 decimal places; fallback to sprintf
+$   WC "d_Gconvert='sprintf((b),""%.*" + (nvgformat-"""") + ",(n),(x))'"
+$ ELSE
+$   WC "d_Gconvert='my_gconvert(x,n,t,b)'"
+$ ENDIF
 $ WC "d_PRIEldbl='" + d_PRIEUldbl + "'"
 $ WC "d_PRIFldbl='" + d_PRIFUldbl + "'"
 $ WC "d_PRIGldbl='" + d_PRIGUldbl + "'"