From 7bbce51f7bcb41cdd2d6d4f6e4fccd462dd6098b Mon Sep 17 00:00:00 2001 From: Kuba Ober Date: Sun, 29 Dec 2019 22:04:03 -0500 Subject: [PATCH] Add include guard to V3InstrCount.h. (#2075) This is needed for cmake unity build to work. --- src/V3InstrCount.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/V3InstrCount.h b/src/V3InstrCount.h index 6d5ba0c5a..ecc9f73ca 100644 --- a/src/V3InstrCount.h +++ b/src/V3InstrCount.h @@ -19,6 +19,9 @@ // //************************************************************************* +#ifndef _V3INSTRCOUNT_H_ +#define _V3INSTRCOUNT_H_ 1 + #include "config_build.h" #include "verilatedos.h" @@ -41,3 +44,5 @@ public: // Optional osp is stream to dump critical path to. static uint32_t count(AstNode* nodep, bool assertNoDups, std::ostream* osp = NULL); }; + +#endif // guard