Include <cmath> in yosys.h
authorClifford Wolf <clifford@clifford.at>
Sun, 8 May 2016 08:50:39 +0000 (10:50 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 8 May 2016 08:50:39 +0000 (10:50 +0200)
frontends/ast/ast.cc
kernel/yosys.h

index 64fd0a49c3f7dff9a96b9606c20c0d1ee2aef451..3ba97ed9b91356cc8682faa73d2b9b0d725aad76 100644 (file)
 #include "libs/sha1/sha1.h"
 #include "ast.h"
 
-#include <sstream>
-#include <stdarg.h>
-
-#if defined(__APPLE__)
-#  include <cmath>
-#else
-#  include <math.h>
-#endif
-
 YOSYS_NAMESPACE_BEGIN
 
 using namespace AST;
index cc15ca47cbf2f3396fb11dc7446b356ae60f9679..0df750a134a6fd4d8acbff26006dd64292534ccf 100644 (file)
@@ -51,6 +51,7 @@
 #include <initializer_list>
 #include <stdexcept>
 #include <memory>
+#include <cmath>
 
 #include <sstream>
 #include <fstream>