summaryrefslogtreecommitdiff
path: root/frontends/ast/ast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r--frontends/ast/ast.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index 87b073ff..e41416ef 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -32,7 +32,12 @@
#include <sstream>
#include <stdarg.h>
+
+#if defined(__APPLE__)
+#include <cmath>
+#else
#include <math.h>
+#endif
YOSYS_NAMESPACE_BEGIN