flex disable register decls
This commit is contained in:
parent
19925c3a7d
commit
b4851a6c7d
|
|
@ -236,6 +236,9 @@ set(STA_TCL_FILES
|
|||
#
|
||||
################################################################
|
||||
|
||||
# Earlier versions of flex use 'register' declarations are deprecated in c++11
|
||||
# and illegal in c++17.
|
||||
#find_package(FLEX 2.6.4)
|
||||
find_package(FLEX)
|
||||
find_package(BISON)
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
// Liberty function expression lexical analyzer
|
||||
|
||||
#include "util/FlexDisableRegister.hh"
|
||||
#include "Debug.hh"
|
||||
#include "StringUtil.hh"
|
||||
#include "liberty/LibertyExprPvt.hh"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "util/FlexDisableRegister.hh"
|
||||
#include "liberty/LibertyParser.hh"
|
||||
#include "LibertyParse.hh"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <string.h>
|
||||
#include <string>
|
||||
|
||||
#include "util/FlexDisableRegister.hh"
|
||||
#include "StringUtil.hh"
|
||||
#include "parasitics/SpefReaderPvt.hh"
|
||||
#include "SpefParse.hh"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "util/FlexDisableRegister.hh"
|
||||
#include "sdf/Sdf.hh"
|
||||
#include "SdfParse.hh"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
// workaround for flex versions that insert register declarations
|
||||
#if !(YY_FLEX_MAJOR_VERSION >= 2 && YY_FLEX_MINOR_VERSION >= 6) && __cplusplus > 199711L
|
||||
#define register
|
||||
#endif
|
||||
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "util/FlexDisableRegister.hh"
|
||||
#include "Debug.hh"
|
||||
#include "VerilogNamespace.hh"
|
||||
#include "verilog/VerilogReaderPvt.hh"
|
||||
|
|
|
|||
Loading…
Reference in New Issue