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:
Richard Smith 2013-05-09 17:41:19 +00:00
parent e347243061
commit 0646c86dcb
1 changed files with 3 additions and 3 deletions
clang/lib/Headers

View File

@ -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;}