summaryrefslogtreecommitdiff
path: root/src/complex/_Imaginary_I.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/_Imaginary_I.h')
-rw-r--r--src/complex/_Imaginary_I.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/complex/_Imaginary_I.h b/src/complex/_Imaginary_I.h
new file mode 100644
index 00000000..052ecfc5
--- /dev/null
+++ b/src/complex/_Imaginary_I.h
@@ -0,0 +1,15 @@
+#include <complex.h>
+
+#ifdef __STDC_IEC_559_COMPLEX__
+#define _Imaginary_I \
+ (((union { \
+ float _Imaginary __i; \
+ float __f; \
+ }){ .__f = 1.0 }).__i)
+#endif
+
+/* This should only be defined if imaginary types are supported. */
+
+/*
+STDC(199901)
+*/