r181527 - Fix the return type of the complex creal functions. Patch by YunZhong Gao, modified to use _Static_assert and to check __STDC_HOSTED__ by me.

jahanian fjahanian at apple.com
Thu May 9 12:57:23 PDT 2013


This  test  starting to fail on a Window  machine:

C: .../Release/../lib/clang/3.4/include\tgmath.h:33:10: fatal error: 'complex.h' file not found
  #include <complex.h>
           ^
  1 error generated.
- Fariborz


On May 9, 2013, at 10:41 AM, Richard Smith <richard-llvm at metafoo.co.uk> wrote:

> Author: rsmith
> Date: Thu May  9 12:41:19 2013
> New Revision: 181527
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=181527&view=rev
> Log:
> Fix the return type of the complex creal functions. Patch by YunZhong Gao, modified to use _Static_assert and to check __STDC_HOSTED__ by me.
> 
> Modified:
>    cfe/trunk/lib/Headers/tgmath.h
> 
> Modified: cfe/trunk/lib/Headers/tgmath.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/tgmath.h?rev=181527&r1=181526&r2=181527&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Headers/tgmath.h (original)
> +++ cfe/trunk/lib/Headers/tgmath.h Thu May  9 12:41:19 2013
> @@ -1340,15 +1340,15 @@ static long double _Complex
> 
> // creal
> 
> -static float _Complex
> +static float
>     _TG_ATTRS
>     __tg_creal(float __x) {return __x;}
> 
> -static double _Complex
> +static double
>     _TG_ATTRS
>     __tg_creal(double __x) {return __x;}
> 
> -static long double _Complex
> +static long double
>     _TG_ATTRS
>     __tg_creal(long double __x) {return __x;}
> 
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130509/1f38bc72/attachment.html>


More information about the cfe-commits mailing list