mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 01:05:58 +08:00
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
@ -179,6 +179,7 @@ TEST_CASE("triangle intersection", "[]")
|
|||||||
CHECK(abs(i.y() - 1.) < std::numeric_limits<double>::epsilon());
|
CHECK(abs(i.y() - 1.) < std::numeric_limits<double>::epsilon());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
@ -188,7 +189,6 @@ TEST_CASE("Italic check", "[]")
|
|||||||
std::queue<std::string> dir_paths;
|
std::queue<std::string> dir_paths;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
dir_paths.push("C:/Windows/Fonts");
|
dir_paths.push("C:/Windows/Fonts");
|
||||||
#elif defined(__APPLE__)
|
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
dir_paths.push("/usr/share/fonts");
|
dir_paths.push("/usr/share/fonts");
|
||||||
#endif
|
#endif
|
||||||
@ -220,3 +220,4 @@ TEST_CASE("Italic check", "[]")
|
|||||||
CHECK(exist_italic);
|
CHECK(exist_italic);
|
||||||
CHECK(exist_non_italic);
|
CHECK(exist_non_italic);
|
||||||
}
|
}
|
||||||
|
#endif // not __APPLE__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user