aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-01-25 14:54:39 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-01-25 14:54:39 +0100
commit934b8a1304f4d210520c1b158c2ee3da78062532 (patch)
treec3bf06553c525a2f7794a25ecc9686fbc314b8b7 /test/main.h
parentec8a387972650cda5ad32da5f89659631ad3008a (diff)
Avoid `I` as an identifier, since it may clash with the C-header complex.h
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/main.h b/test/main.h
index 8a68a84ee..0b5821cd5 100644
--- a/test/main.h
+++ b/test/main.h
@@ -97,6 +97,8 @@
#define FORBIDDEN_IDENTIFIER (this_identifier_is_forbidden_to_avoid_clashes) this_identifier_is_forbidden_to_avoid_clashes
// B0 is defined in POSIX header termios.h
#define B0 FORBIDDEN_IDENTIFIER
+// `I` may be defined by complex.h:
+#define I FORBIDDEN_IDENTIFIER
// Unit tests calling Eigen's blas library must preserve the default blocking size
// to avoid troubles.