delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/07/20/15:11:03

From: ebachalo AT cygnus DOT com (Eric Bachalo)
Subject: Re: printf + long long
20 Jul 1998 15:11:03 -0700 :
Message-ID: <3.0.5.32.19980720144405.0094a100.cygnus.cygwin32.developers@pop.cygnus.com>
References: <m0yyM4t-00110QC AT malasada DOT lava DOT net>
Mime-Version: 1.0
To: newsham AT lava DOT net (Tim Newsham)
Cc: newsham AT lava DOT net, cygwin32-developers AT cygnus DOT com

That line was in the code back in October, 1995.  Probably was inserted
earlier than that.  It was an oversight that it was never removed for Win32
builds.

BTW it has been changed in our sources to:

#define _NO_LONGLONG
#if defined WANT_PRINTF_LONG_LONG && defined __GNUC__
# undef _NO_LONGLONG
#endif

With a change in newlib/configure.host to:

case "${host}" in
  *-*-cygwin32)
	newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME
-DSIGNAL_PROVIDED -DWANT_PRINTF_LONG_LONG"
	syscall_dir=syscalls
	;;


Best Regards,

Eric Bachalo



At 09:58 AM 7/20/98 -1000, Tim Newsham wrote:
>> I just left a meeting where this problem was brought up as a side issue.
>> It is being looked into and should be resolved shortly.  Thank you for
>> pointing it out.  I heard that it may require both minor newlib and minor
>> cygnwin changes.
>
>I just took out the '#if 1   #define _NO_LONLONG   #endif' in 
>newlib/libc/stdio/vfprintf.c and rebuilt and printf with %lld and
>%qd now works properly.
>
>(why was that defined in the first place?)
>
>> Best Regards,
>> Eric Bachalo
>
>                                             Tim N.
>
>
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019