summaryrefslogtreecommitdiff
path: root/tests/tset.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tset.c')
-rw-r--r--tests/tset.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tset.c b/tests/tset.c
index f26a473..507dc95 100644
--- a/tests/tset.c
+++ b/tests/tset.c
@@ -38,6 +38,11 @@ MA 02111-1307, USA. */
#include <locale.h>
#endif
+/* see https://gforge.inria.fr/tracker/index.php?func=detail&aid=12829&group_id=131&atid=607 */
+#ifdef __sun /* Solaris complex.h is broken */
+#define _Imaginary_I (__extension__ 1.0iF)
+#endif
+
#include "mpc-tests.h"
#define PRINT_ERROR(function_name, precision, a) \