From 75883618c9d91fbabe20350c875fce48f519ada6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 9 May 2013 17:41:19 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181527 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/tgmath.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Headers/tgmath.h b/lib/Headers/tgmath.h index 4fa1cf72f2..a48e267e60 100644 --- a/lib/Headers/tgmath.h +++ b/lib/Headers/tgmath.h @@ -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;} -- 2.40.0