Skip to content

Commit c274d6e

Browse files
committed
Support Minisat source variants where l_False/l_True are not macros
There isn't really a single authoritative Minisat source anymore, and therefore system-provided Minisat installations may use slightly different source layouts. Cater for this by supporting at least the variants with/without macros for l_False/l_True. Fixes: #8052
1 parent 3777fa9 commit c274d6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/solvers/sat/satcheck_minisat2.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Author: Daniel Kroening, [email protected]
2121
#include <minisat/core/Solver.h>
2222
#include <minisat/simp/SimpSolver.h>
2323

24+
#ifndef l_False
25+
# define l_False Minisat::l_False
26+
# define l_True Minisat::l_True
27+
#endif
28+
2429
#ifndef HAVE_MINISAT2
2530
#error "Expected HAVE_MINISAT2"
2631
#endif

0 commit comments

Comments
 (0)