From: Clifford Wolf Date: Wed, 12 Jun 2013 08:18:01 +0000 (+0200) Subject: Fixed gcc build (c++11 stuff in ezSAT) X-Git-Tag: yosys-0.2.0~575^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bee82ae2d3395a13d5f5e371af6fe5d657602cb;p=yosys.git Fixed gcc build (c++11 stuff in ezSAT) --- diff --git a/libs/ezsat/ezsat.cc b/libs/ezsat/ezsat.cc index f21c8ee2a..e37031314 100644 --- a/libs/ezsat/ezsat.cc +++ b/libs/ezsat/ezsat.cc @@ -24,6 +24,9 @@ #include #include +const int ezSAT::TRUE = 1; +const int ezSAT::FALSE = 2; + ezSAT::ezSAT() { literal("TRUE"); diff --git a/libs/ezsat/ezsat.h b/libs/ezsat/ezsat.h index 8371071ed..2674d83df 100644 --- a/libs/ezsat/ezsat.h +++ b/libs/ezsat/ezsat.h @@ -44,8 +44,8 @@ public: OpNot, OpAnd, OpOr, OpXor, OpIFF, OpITE }; - const int TRUE = 1; - const int FALSE = 2; + static const int TRUE; + static const int FALSE; private: std::map literalsCache;