delorie.com/archives/browse.cgi | search |
On Fri, Jul 1, 2011 at 9:14 PM, DJ Delorie <dj AT delorie DOT com> wrote: > > Why _Complex and not just complex ? > > NAME > cabs, cabsf, cabsl - absolute value of a complex number > > SYNOPSIS > #include <complex.h> > > double cabs(double complex z); > float cabsf(float complex z); > long double cabsl(long double complex z); > Because gcc doesn't recognize "complex" but _Complex is builtin to it. AFAIK, complex type is supposed to be defined in complex.h which djgpp doesn't have. (I reserve my right to be wrong here :) -- O.S.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |