Fix for:
../tests/libslic3r/test_emboss.cpp:200:38: error: 'directory_iterator' is unavailable: introduced in macOS 10.15 ../tests/libslic3r/test_emboss.cpp:200:57: error: 'path' is unavailable: introduced in macOS 10.15
This commit is contained in:
parent
546009a8e9
commit
3f58cf73af
1 changed files with 3 additions and 2 deletions
|
@ -179,6 +179,7 @@ TEST_CASE("triangle intersection", "[]")
|
|||
CHECK(abs(i.y() - 1.) < std::numeric_limits<double>::epsilon());
|
||||
}
|
||||
|
||||
#ifndef __APPLE__
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <filesystem>
|
||||
|
@ -188,7 +189,6 @@ TEST_CASE("Italic check", "[]")
|
|||
std::queue<std::string> dir_paths;
|
||||
#ifdef _WIN32
|
||||
dir_paths.push("C:/Windows/Fonts");
|
||||
#elif defined(__APPLE__)
|
||||
#elif defined(__linux__)
|
||||
dir_paths.push("/usr/share/fonts");
|
||||
#endif
|
||||
|
@ -219,4 +219,5 @@ TEST_CASE("Italic check", "[]")
|
|||
}
|
||||
CHECK(exist_italic);
|
||||
CHECK(exist_non_italic);
|
||||
}
|
||||
}
|
||||
#endif // not __APPLE__
|
||||
|
|
Loading…
Reference in a new issue