summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-04-05 15:49:37 +0200
committertomsmeding <tom.smeding@gmail.com>2017-04-05 15:49:37 +0200
commit6fba2e74c6b5c6f631a5c70da58fb5af25a7d389 (patch)
tree495daacf0457f759a254584afdb89f33e6b08939
parent56563700df68816e8329b99f66ede5459cbbb23a (diff)
Define CMLPX if not defined
-rw-r--r--attract.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/attract.c b/attract.c
index f4cb7b0..bd7717d 100644
--- a/attract.c
+++ b/attract.c
@@ -8,6 +8,10 @@
#include <assert.h>
#include "lodepng.h"
+#ifndef CMPLX
+#define CMPLX(r,i) ((r) + (i)*I)
+#endif
+
const int MAXITER=200;
const double EPS=1e-1;