summaryrefslogtreecommitdiffstats
path: root/include/complex.h
diff options
context:
space:
mode:
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 33c7940..0702541 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
OpenPOWER on IntegriCloud