projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a1c2c1
)
complex: make _Complex_I work with gcc -std=c99 -pedantic-errors
author
nsz
<nsz@port70.net>
Sun, 21 Oct 2012 00:31:04 +0000
(
02:31
+0200)
committer
nsz
<nsz@port70.net>
Sun, 21 Oct 2012 00:31:04 +0000
(
02:31
+0200)
include/complex.h
patch
|
blob
|
history
diff --git
a/include/complex.h
b/include/complex.h
index 436f32f49c77fcb424cbb776be2872810c6b67e8..b4bcb22efc818d05a294bf86e7bb178ea986dbb8 100644
(file)
--- a/
include/complex.h
+++ b/
include/complex.h
@@
-6,7
+6,11
@@
extern "C" {
#endif
#define complex _Complex
+#ifdef __GNUC__
+#define _Complex_I (__extension__ 1.0fi)
+#else
#define _Complex_I 1.0fi
+#endif
#define I _Complex_I
double complex cacos(double complex);