Merge pull request #541 from hzeller/20230829-undef-clashing-macro

Undef a macro that clashes with a UHDM class.
diff --git a/systemverilog-plugin/uhdmastshared.h b/systemverilog-plugin/uhdmastshared.h
index 56481b7..1dcd260 100644
--- a/systemverilog-plugin/uhdmastshared.h
+++ b/systemverilog-plugin/uhdmastshared.h
@@ -3,6 +3,10 @@
 
 #include "frontends/ast/ast.h"
 
+// Yosys defines a 'cover' macro in implicitly included kernel/log.h
+// that clashes with cover-class in UHDM
+#undef cover
+
 #include <string>
 #include <uhdm/uhdm.h>
 #include <uhdm/vpi_user.h>