aboutsummaryrefslogtreecommitdiff
path: root/include/complex.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-01-17 20:22:10 +0000
committerEd Schouten <ed@FreeBSD.org>2012-01-17 20:22:10 +0000
commit76f11d88aa33b0a3e28d066a5dc0dd6890aa9a6f (patch)
tree28b98d379290152708011177d8512ac75ee2769c /include/complex.h
parent9b6e65b66f19b780ed385da75c0a21db46063be4 (diff)
Notes
Diffstat (limited to 'include/complex.h')
-rw-r--r--include/complex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/complex.h b/include/complex.h
index 33c7940b3324..0702541c44aa 100644
--- a/include/complex.h
+++ b/include/complex.h
@@ -36,6 +36,9 @@
#define _Complex __complex__
#endif
#define _Complex_I ((float _Complex)1.0i)
+#endif
+
+#ifdef __generic
_Static_assert(__generic(_Complex_I, float _Complex, 1, 0),
"_Complex_I must be of type float _Complex");
#endif