Skip to content

Commit

Permalink
test/lp: Replace if linux with if not windows.
Browse files Browse the repository at this point in the history
This is stuff that works on posix, so we can flip the check.
  • Loading branch information
waywardmonkeys authored and NikolajBjorner committed Aug 3, 2022
1 parent 55b70b4 commit d8c9948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/lp/lp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
--*/

#include <limits>
#if _LINUX_
#ifndef _WINDOWS
#include <dirent.h>
#endif
#include <algorithm>
Expand Down Expand Up @@ -1735,7 +1735,7 @@ void random_test() {
}
}

#if _LINUX_
#ifndef _WINDOWS
void fill_file_names(vector<std::string> &file_names, std::set<std::string> & minimums) {
char *home_dir = getenv("HOME");
if (home_dir == nullptr) {
Expand Down Expand Up @@ -4072,7 +4072,7 @@ void test_lp_local(int argn, char**argv) {
}

if (args_parser.option_is_used("--solve_some_mps")) {
#if _LINUX_
#ifndef _WINDOWS
solve_some_mps(args_parser);
#endif
ret = 0;
Expand Down

0 comments on commit d8c9948

Please sign in to comment.