Re: log2 as function not as macro

2004-06-15 Thread Christopher Faylor
On Tue, Jun 15, 2004 at 07:53:46PM +0200, Johnny Willemsen wrote: >Yes, you are correct, we do this now in this way. Cygwin is the only >environment for which we have to do this and I just don't like it. It means >we have to include math.h in a header file where we don't need it. A change >to a fun

RE: log2 as function not as macro

2004-06-15 Thread Johnny Willemsen
Hi, > And the answer there will probably be that if your code depends on whether > this function is a macro or a real function then your code is not valid C. > The C language spec specifically says that implementations are free to > provide library functions as macros as well as functions. See

RE: log2 as function not as macro

2004-06-14 Thread Igor Pechtchanski
On Mon, 14 Jun 2004, Dave Korn wrote: > > -Original Message- > > From: cygwin-owner On Behalf Of Corinna Vinschen > > Sent: 14 June 2004 14:48 > > > On Jun 14 14:11, Johnny Willemsen wrote: > > > Hi, > > > > > > Are there plans to deliver log2 as regular function instead of > > > macro. Th

RE: log2 as function not as macro

2004-06-14 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Corinna Vinschen > Sent: 14 June 2004 14:48 > On Jun 14 14:11, Johnny Willemsen wrote: > > Hi, > > > > Are there plans to deliver log2 as regular function instead > of macro. The > > log2 as macro is hard to use in projects that also

Re: log2 as function not as macro

2004-06-14 Thread Corinna Vinschen
On Jun 14 14:11, Johnny Willemsen wrote: > Hi, > > Are there plans to deliver log2 as regular function instead of macro. The > log2 as macro is hard to use in projects that also define a log2 function. I > know, we can work around it, but it comes back and back again. You could ask this on the ne