aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r--kernel/yosys.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index f9bbc0e44..e12069b4c 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -64,6 +64,14 @@
# define USING_YOSYS_NAMESPACE
#endif
+#if __cplusplus >= 201103L
+# define OVERRIDE override
+# define FINAL final
+#else
+# define OVERRIDE
+# define FINAL
+#endif
+
YOSYS_NAMESPACE_BEGIN
namespace RTLIL {