forked from OSchip/llvm-project
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.
llvm-svn: 181527
This commit is contained in:
parent
e347243061
commit
0646c86dcb
clang/lib/Headers
|
@ -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;}
|
||||
|
||||
|
|
Loading…
Reference in New Issue